View Full Version : How to change an Context Menu Icon Depending upon a param

29 Nov 2010, 3:04 AM
I have a treegrid, which I want the context menu to have different items depending on what is clicked. If it is an item, then the usual contextmenu, if its a folder I want to change the top item from the context menu to "Edit Folder Name" rather than "Edit Formula Name" and give it slightly different handlers etc.



29 Nov 2010, 3:46 AM
Create 2 menus and show the correct one in the contextmenu event (or you could use one menu and hide the menu items that are not relevant for the clicked node).