Context Menu of KetticTreeView in C#.NET
KetticTreeView control supports the context menu for nodes. This control contains default context menu for the users to easily display menu on the node in tree view. The default menu can be shown by a simple right click on the node where you are going to add a menu. In addition, the KetticTreeView WinForms control also supports custom context menu. In this C# tutorial, we are going through the process of working with the default context menu in TreeView.
Items for Using Context Menu in TreeView
The default context menu of KetticTreeView node contains several items for the users to work with it. To show a context menu, we can simply right click the node of TreeView. The following are the context menu items.
C# Enable Context Menu for TreeView Node
KetticTreeView control doesn't enable the context menu by default. To enable this functionality, we need to change the value of the ApplyContextMenu to be true as the C# code snippet below.
When we enable the context menu functionality, the menu items mentioned above aren't simultaneously enabled besides the Expand and Collapse. We should enable these context menu items one by one and the following C# code snippets demonstrate how to achieve this. C# Enable New Item of Context Menu in TreeView Node
KetticTreeView control includes the EnableAdd property for the users to enable the New Item of context menu for tree view node. The C# code snippet below shows how to achieve this.
C# Enable Context Menu Edit Item of TreeView Node
KetticTreeView contains the EnableEdit property for the users to enable the menu Edit Item for tree view node. The C# code snippet below shows how to achieve this.
C# Enable Menu Delete Item of TreeView Node
KetticTreeView contains the EnableRemove property for the users to enable the menu Remove Item for tree view node. The C# code snippet below shows how to achieve this.
|
UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlKeyboard SupportDesign Time SupportBuild PropertyContext MenuTreeView - NodeAdd & Remove NodesReorder NodesFormat NodesEdit NodesSelect NodesFilter NodesCustom Filter NodesSort NodesCustom Sort NodesFind Sort NodesData BindingBasicsDatabaseXML DataDrag and DropCustomizationContext MenuCustomizationAssign ScreenTipLocalizationWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |