How can I disable/enable/remove a context menu item?

Hi,

There seem to be a confusion on the relationship between the menu and context menu. It is hard to locate the right API for the context menu.

I am trying to remove/enable or disable a menu item from a context menu, can you point me to the right doco please?



Thanks,



Daniel,

If you are using dhtmlxMenu as context menu you can use existing API to manipulate items.

cMenu.menu.addItem(
cMenu.menu
.removeItem(itemId);
cMenu.menu.hideItem(itemId);   // have all items loaded in initial XML and just hide|show necessary ones is more simple approach
cMenu.menu.showItem(itemId);



dhtmlx.com/docs/products/dhtmlxM … 5755008000