Nov 13, 2017, 12:14 PM
[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
Thank you for an advice,
stupp
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 6:34 PM.