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

Is it possible to search and retrieve TreeNodeAdv based on its Text in TreeViewAdv?

TreeViewAdv has built-in support to search the TreeNodeAdv based on its text, by using the class named TreeViewAdvFindReplaceDialog. It can be done using the following categories:

  1. TreeViewSearchOption
  2. TreeViewSearchRange
  3. TreeViewSearchNavigation

TreeViewSearchOption

This property specifies the Searching option in TreeViewAdv.

  1. MatchWholeText
  2. MatchCase

MatchWholeText

This option helps match the whole searched text with the TreeNodeAdv text, while performing a search in TreeViewAdv.

Figure 1: TreeViewAdv performing search option with “MatchWholeText

MatchCase

This option specifies whether casing needs to be considered during the search process.

Figure 2: TreeViewAdv performing search option with “MatchCase

TreeViewSearchRange

This property helps to specify the search range in TreeViewAdv during the search process. These options are categorized as follows.

  1. TreeView
  2. RootNode
  3. ChildNode

TreeView

This option helps specify whether the search needs to be performed with all levels of TreeNodeCollection in TreeViewAdv.

Figure 3: TreeViewAdv performing search range with “TreeView

RootNode

This option helps to specify whether the search needs to be performed only with the parent level of the TreeNodeAdv.

 

Figure 4: TreeViewAdv performing search range with “RootNode

ChildNode

This option helps to specify, whether the search needs to be performed only with the child level of TreeNodeAdv.

Figure 5: TreeViewAdv performing search range with “ChildNode

TreeViewSearchNavigation

This property helps to specify the navigation option for TreeViewAdv, upon using find and replace in the TreeNodeAdv process in TreeViewAdv. These options are categorized as follows:

  1. SearchUp
  2. SearchDown
  3. SearchAll

SearchUp

This option helps to specify whether the search needs to be performed from the bottom to the top of TreeViewAdv.

SearchDown

This option helps to specify whether the search needs to be performed from the top to the bottom of TreeViewAdv.

SearchAll

This option helps to specify whether the search can be performed in the above cases repeatedly.

The following code example demonstrates the same.

C#

VB

Sample Links:

C#: http://www.syncfusion.com/downloads/support/directtrac/140508/ze/TreeViewAdv_Search266391841

VB: http://www.syncfusion.com/downloads/support/directtrac/140508/ze/TreeViewAdv_Search_VB444885373

Article ID: Published Date: Last Revised Date: Platform: Control:
5219 07/16/2015 07/16/2015 WinForms TreeViewAdv
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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