I am using dhtmlxMenu v.2.0 Standard edition build 81009/81107
test
This html file work fine under not Visual Studio 2005 environment
If under that environment, when execute to �menu.setItemDisabled(“m11”);�
Visual Studio show error message
‘this.itemPull[…].patent’ is null or not an object
dhtmlxmenu.js : stop at line 23
return (this.itemPull[thi’s.idPrefix+id][“parent”]==this.idPrefix+this.topId?“TopLevel”:“SubLevelArea”)
Hello,
the operations with items should be executed after the xml (items) is loaded:
menu.loadXML("…/xml/dhtmlxmenu.xml?etc="+new Date().getTime(),function(){
menu.setItemDisabled(“m11”);
});
My program is no difference with your answer.
This html file work fine under not Visual Studio 2005 environment
If under that environment (Visual Studio 2005 environment ), when execute to �menu.setItemDisabled(“m11”);�
Visual Studio show error message
‘this.itemPull[…].patent’ is null or not an object
dhtmlxmenu.js : stop at line 23
return (this.itemPull[thi’s.idPrefix+id][“parent”]==this.idPrefix+this.topId?“TopLevel”:“SubLevelArea”)
The issue was not reproduced locally. Please, provide the complete sample or direct link to the problematic page.
Menu Items State Manipulation
Please, try the attached sample. Here menu.setItemDisabled(“m11”); is called in the way that has been recommended in the previous reply.
1248691026.zip (40.5 KB)