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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

context menu in tree

Thread ID:

Created:

Updated:

Platform:

Replies:

27529 Apr 13,2005 09:51 PM UTC Apr 20,2005 03:57 PM UTC WinForms 3
loading
Tags: Tools
Nancy Jan
Asked On April 13, 2005 09:51 PM UTC

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

Administrator [Syncfusion]
Replied On 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.

Administrator [Syncfusion]
Replied On 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).

Nancy Jan
Replied On April 20, 2005 03:57 PM UTC

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;