I"m following example for context menu in grid view:
Sample grid view has context menu on clicking record: Add/Edit/Delete.
Need advice how to create dynamic context menu on-the-fly based on selected row, using parent-child nodes approach like:
- Notify Option1
- client 1
- client 2
- client <...> (items number is variable based on selected row)
- Notify Option2
- department<...> (variable)
I'm wonder if it is possible to populate menu items in Click_Row() event instead of static init process this.InitializeRowContextMenuItems();
Another approach would be creating separate dialog inside Click_Row() listing all items for each category "Notify Option1", "Notify Option2". But dynamic menu context looks more clean approach.