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

Threaded View

Previous Post Previous Post   Next Post Next Post
  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) {
               App.tourSubscriptionGridPanel.view.refresh(App.tourSubscriptionGridPanel.store.getAt(rowIndex));
            };
    but it didn't work for me.

    Thank you for an advice,
    stupp
    Last edited by fabricio.murta; Dec 01, 2017 at 5:34 PM.

Similar Threads

  1. [CLOSED] GridPanel ImageCommandColumn Centering Image
    By rmelancon in forum 2.x Legacy 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. [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
  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