EXT.NET v3.0 BETA RELEASED!
Now with Tablet Support!
Ext.NET v3.0 Beta is here with lots of new cool features and now with tablet support! Check Examples Explorer now to see it in action or download and test it yourself for free!
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,385

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

Posting Permissions