Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Venkata Dharma Chand B on Mar 31, 2009 06:56
open dhtmlx forum
how to hide multiple Items in contextMenu of dhtmlxtree

Hi,

How to hide multiple Items in contextMenu? Can we get the list of items/nodes/options in contextmenu of a dhtmlxtree?

Regards,
Chand
Answer posted by Alex (supprot) on Apr 01, 2009 08:48

Hello,

>>How to hide multiple Items in contextMenu? 

You can use hideItem(itremId) method.

>> Can we get the list of items/nodes/options in contextmenu of a dhtmlxtree?

You can iterate through all menu items:

menu.forEachItem(function(id){

...

})