Results 1 to 3 of 3

Thread: Show/Hide Image Command from Code behind

  1. #1
    Member
    Join Date
    Feb 2009
    Location
    Posts
    25

    Show/Hide Image Command from Code behind

    Hi,


    In a grid i have 5 Image command columns each having 2 image command each. Based on certain condition i need to hide/show one of those image commands in each command column from code behind.

    Can somebody please guide me how achieve the same?

  2. #2
    Ext.NET - Dev Team Vladimir's Avatar
    Join Date
    Mar 2008
    Location
    Russia
    Posts
    15,150

    RE: Show/Hide Image Command from Code behind

    Hi,

    From code-behind it is not possible. You need use PrepareCommand to hide command
    See
    http://examples1.ext.net/#/GridPanel/Commands/Image_Command/


    You can trigger PrepareCommand in codebehind for particular row using the following script (use AddScript to register script)
    Code:
    grid.view.refreshRow(grid.store.getAt(rowIndex));
    Vladimir Shcheglov
    Ext.NET, Inc.
    Development Team

    Ext.NET Examples | Ext.NET API Docs | ExtJS API Docs | Twitter | Jobs

  3. #3
    Member
    Join Date
    Aug 2012
    Posts
    61
    Is this possible in Ext.Net 2.x?

Similar Threads

  1. Replies: 1
    Last Post: May 16, 2012, 12:57 PM
  2. Replies: 1
    Last Post: May 10, 2012, 8:56 PM
  3. [1.0] Image Command + Text Wrapping
    By mj.daly in forum 1.x Help
    Replies: 0
    Last Post: Apr 20, 2011, 9:21 AM
  4. Replies: 1
    Last Post: Dec 10, 2010, 5:04 PM
  5. Image Command problem
    By gayancc in forum 1.x Help
    Replies: 2
    Last Post: Nov 19, 2010, 6:57 PM

Posting Permissions