[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
Code:
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