Set disable menu commands
I have a GridCommand and i can't disable a Menu command.
I try:
Code:
GridPanel.colModel.columns[9].commands[0].menu.items[0].disabled = false;
GridPanel.colModel.columns[9].commands[0].menu.items[1].disabled = true;
GridPanel.colModel.columns[9].commands[0].menu.items[2].disabled = true;
GridPanel.colModel.columns[9].commands[0].menu.items[3].disabled = false;
for each menu command but all remain enable. It's possible disable its according to criteria?
Thanks.
RE: Set disable menu commands
Hi,
GridPanel1.colModel.columns[5].commands[0].disabled = true;
GridPanel1.view.refresh();
RE: Set disable menu commands
Code:
GridPanel.colModel.columns[9].commands[0].menu.items[0].disabled = true;
GridPanel.view.refresh() ;
GridPanel.view.refresh() is undefined.
And the menu is not deployed. I have some Icons in the menu and i want to make disable only one ot them. I don't want to disable all the column. There is another way to do it?
Thanks