Categories | Question details Back To List | ||
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, Answer posted by Support on Mar 17, 2008 04:43 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); http://dhtmlx.com/docs/products/dhtmlxMenu/samples/items_properties/menu_add_items.html?un=1205755008000 |