View Full Version : Different ContextMenus within one tree
timefortea
24 Oct 2008, 1:57 AM
Is it possible to have different ContextMenus within the one tree? I have different items in the tree and would like the ContextMenu to vary, depending on the item that was right-clicked - can this be done?
timefortea
29 Oct 2008, 3:50 AM
Anyone know if this is possible?
Thanks.
gslender
30 Oct 2008, 1:07 PM
not sure, but would look into perhaps tree's ContextMenu event and change/swap the context menus based on some value (ie the selected tree node etc) - if not that, then menu itself has a few events that perhaps you can build different submenu items and swap them etc...
timefortea
31 Oct 2008, 2:23 AM
Your first suggestion worked perfectly - many thanks once again!
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.