Categories | Question details Back To List | ||
dhtmlxmenu id for middle level Hi i using onTouch,onClick events to know parentId, but donīt work for middle levels for example >Inicio:1 >Primero:2 >Segundo:3 >Tercero: 4 The events show Id for 1,3, and 4, But >Primero:2 donīt show nothing, how do it to get parentId for Item >Primero:2 Thanks. Jorge Arzuaga Answer posted by Alex (support) on May 07, 2009 01:26 Hello Could you please provide the complete demo ? It'll allow us to re-create the problem easily. Answer posted on May 07, 2009 07:46 menu_muestra.attachEvent("onTouch", changeParent); var parentId = null;
>Inicio:1 to examples in dhtmlxMenu in section Items>Menu Items Manipulations Here i can add a Items for example to item "Open" but i don´t add more items to "Open" because i can´t selected parenId for item "Open" http://www.dhtmlx.com/docs/products/dhtmlxMenu/samples/items/manipulations.html Answer posted by Alex (support) on May 08, 2009 05:50 Hello, If you want to enable onClick event for middle level, you can modify the following line in the dhtmlxmenu.js, _doOnClick method: if (type.charAt(0)=="c") { return; } // can't click on complex item try to replace it with: if (type.charAt(0)=="c") {this.callEvent("onClick", [id]); return; } // can't click on complex item In this case onClick will be called. Answer posted by Jorge Arzuaga on May 08, 2009 07:36 Thanks... it's work perfectly..
Jorge Arzuaga |