Show/Hide Image Command from Code behind

  1. #1

    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

    RE: Show/Hide Image Command from Code behind

    Hi,

    From code-behind it is not possible. You need use PrepareCommand to hide command
    See
    https://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)
    grid.view.refreshRow(grid.store.getAt(rowIndex));
  3. #3
    Is this possible in Ext.Net 2.x?

Similar Threads

  1. Replies: 1
    Last Post: May 16, 2012, 12:57 PM
  2. [CLOSED] ext:Image - How I can show a menu when click in ext:Image?
    By supera in forum 2.x Legacy Premium Help
    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. [CLOSED] [1.0] GridPanel Group Command (Menu Type ) show/hide on demand
    By webclouder in forum 1.x Legacy Premium Help
    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