enableItem and disableItem is not working

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]

Please suggest what can be done.Thanks in advance…

Hello
What dhtmlx, OS and browser version do you use?