Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by swati on Sep 20, 2007 20:59
open dhtmlx forum
Hide and show context menu item

How can I hide and show context menu Item based on different node values. I have tried using remove Item method in my_pre_func mygrid.setOnBeforeContextMenu(my_pre_func). as aMenu.menu.removeItem("E"); but that removes the item perm. I just want to hide the item instead of removing. Any help would be greatly appriciated.

Answer posted on Sep 21, 2007 11:13
context menu supports next methods

aMenu.menu.hideItem("E");
aMenu.menu.showItem("E");

which show|hide item in question