Hello,
I want to disable a toolbar button on onload event and enable it on rowSelect event of Grid.
Here is my code
[code]dhtmlxEvent(window,“load”,function(){
toolbar = layout.attachToolbar();
toolbar.setIconsPath(“icons/”);
toolbar.loadStruct(“toolbar.xml”);
toolbar.disableItem(“btnDelete”);
myGrid.attachEvent("onRowSelect", function(id,ind){
toolbar.enableItem('btnDelete');
});
});[/code]