The official release of Ext.NET Mobile is now available. Ext.NET Mobile is an ASP.NET component framework for building Phone and Tablet specific mobile web applications. Read More

Gridpanel with ImageCommandColumn: show Image just if row is selected

  1. #1

    Gridpanel with ImageCommandColumn: show Image just if row is selected

    Hello everyone,

    I have a gridpanel with two imagecommandcolumns.
    I just want to show the images, if the row is selected. Otherwise the images should not be shown.

    I found something like
    var prepareCommand = function (grid, command, record, row) {
                command.hidden = !grid.getSelection().isSelected(record);
            };
    
            var refresh = function (selModel, rowIndex, record) {
               App.tourSubscriptionGridPanel.view.refresh(App.tourSubscriptionGridPanel.store.getAt(rowIndex));
            };
    but it didn't work for me.

    Thank you for an advice,
    stupp
  2. #2
    Hello @Stupp!

    I'm afraid the closest we have to the behavior you described is the OverOnly setting to the column, illustrated in this example: Grid Panel - Commands - Over Commands.

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Thanks.
    That work's!
  4. #4
    Hello @stupp!

    Glad the solution and feature fits your scenario! By the way, welcome to Ext.NET forums!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] GridPanel ImageCommandColumn Centering Image
    By rmelancon in forum 2.x Premium Help
    Replies: 3
    Last Post: May 04, 2017, 6:52 AM
  2. Replies: 2
    Last Post: Sep 13, 2013, 8:49 AM
  3. Replies: 1
    Last Post: Aug 14, 2013, 12:54 PM
  4. Replies: 1
    Last Post: May 10, 2012, 9:56 PM
  5. show a blob image in gridpanel
    By maxdiable in forum 1.x Help
    Replies: 2
    Last Post: Jul 22, 2009, 4:12 PM

Posting Permissions