Hide menu items at the time of loading

Hi,



How can I hide menu items at the time of loading a menu from XML. i am able to hide menu items on a particular event, but my requirement is, i have one master menu XML, and when a particular user logs in , i have to hide a few menu items from the xml, is there a way to do this?



Thanks,

Meenakshi


Hello,


you can use hideItem(id)/showItem(id) methods dhtmlxMenu/samples/items/visibility.html in this case.


This methods can be called as follows:


menu.loadXML(xml,doOnLoad);


function doOnLoad(){


menu.hideItem(some_id);


}