How do i programmatically add menu item based on the grid column…? From the event “onBeforeContextMenu”…
thanks
Peter Ang
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.