Customize Filtering Nodes of KetticTreeView in C#.NET
The Kettic TreeView control offers the support of filtering nodes and rich C# API for the developers to operate the data. It is really easy to perform the filtering node operations on the fly when you exposed the filtering event. The rich C# API and complete set of events provided within the KetticTreeView component help the interface designer to fully control the filtering functionalities. Developers can easily add, delete, update items at runtime, as well as simply create hierarchical navigation for KetticTreeView nodes.
Create Custom Filtering Nodes in KetticTreeView in C#.NET
KetticTreeView control for WinForms provides large flexibility for the developers to customize the filtering nodes by using their own custom logic. And the custom filtering nodes provides higher priority than the applied FilterDescriptors. The following C# code sample shows how to customize the filtering for nodes in KetticTreeView. Create Predicate for Applying Custom Filtering to Nodes
Before we are going to add the custom logic to filtering nodes in KetticTreeView, we need to create a Predicate, which is capable of returning the nodes whose text is more than one character. The following C# code snippet shows how to achieve this.
Apply the Predicate to KetticTreeView in C#.NET
After we create the Predicate, we can set the FilterPredicate property of the control to apply the Predicate to the KetticTreeView. The C# code below shows how to achieve this.
C# Invoke the Filtering for KetticTreeView Nodes
Now, we shall set the Filter property of the KetticTreeView to apply the filter to the control. We can add any string to the Filter property to invoke the filtering operation with the C# code sinppet.
|
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 |