Categories | Question details Back To List | ||
grid dhtmlxcontextmenuobject dynamically add menu item based on column How do i programmatically add menu item based on the grid column...? From the event "onBeforeContextMenu".. thanks Peter Ang Answer posted by Support on Dec 04, 2008 03:16 onBeforeContextMenu event provides column index, so based on it, you can access menu and use its API ( menu.addNewChild or menu addNewSibling ) to create new items. It may be more usefull to load all possible options in XML initially and use only showItem and hideItem to show necessary ones. |