We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

context menu in tree

Is it possible to have different menu items in the context menu at differt level of tree?

3 Replies

AD Administrator Syncfusion Team April 15, 2005 03:01 PM UTC

Hi Nancy, You can customize a PopupMenu (part of XPMenus) before it''s displayed by handling the BeforePopup event. If you combine that with the MouseDown event of the TreeViewAdv and some node detection code, you can customize your context menu based on which node was clicked on. The attached sample demonstrates displaying alternate BarItems if the label/image of a TreeNodeAdv is clicked on, depending on the Level of the node. Hope it helps. Regards, Gregory Austin Syncfusion Inc.


AD Administrator Syncfusion Team April 15, 2005 05:24 PM UTC

Gregory: Thanks for the sample, that will also help me in the future when I need this (and I will).


NJ Nancy Jan April 20, 2005 03:57 PM UTC

Gregory, Thanks and I will look into the sample code. Nancy

Loader.
Live Chat Icon For mobile
Up arrow icon