Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by meenakshi on Jun 17, 2009 03:20
open dhtmlx forum
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
Answer posted by Alex (support) on Jun 17, 2009 05:17

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);

}