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

[CLOSED] Gridpanel with ImageCommandColumn: show Image just if row is selected

  1. #1

    [CLOSED] 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) {
    but it didn't work for me.

    Thank you for an advice,
    Last edited by fabricio.murta; Dec 01, 2017 at 5:34 PM.
  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
    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, 5:52 AM
  2. Replies: 2
    Last Post: Sep 13, 2013, 7:49 AM
  3. Replies: 1
    Last Post: Aug 14, 2013, 11:54 AM
  4. Replies: 1
    Last Post: May 10, 2012, 8:56 PM
  5. show a blob image in gridpanel
    By maxdiable in forum 1.x Help
    Replies: 2
    Last Post: Jul 22, 2009, 3:12 PM

Posting Permissions