| Visual Basic (Declaration) | |
|---|---|
Public Property AllowKeyboardSearch As Boolean | |
| C# | |
|---|---|
public bool AllowKeyboardSearch {get; set;} | |
When True and when the control is not in edit mode, pressing keyboard keys will automatically invoke a search of UltraTreeNode.Visible, UltraTreeNode.Expanded tree nodes. Keys entered in rapid succession will be assumed to be part of a word and so the control will search on all keys entered.
A short delay will clear the entered keys and start searching again from the first character entered.
This keyboard searching will always search on the UltraTreeNode.Text property of the node.
The node matching the entered keys will be made the UltraTree.ActiveNode.
Note: In the case where the control is bound to a data source, the value of the UltraTreeColumnSet.NodeTextColumn property determines the data column from which the value of the UltraTreeNode.Text property is obtained. If the NodeTextColumn property is not specifically set to the column which you want to provide the value of the node's Text property, the AllowKeyboardSearch property may not function as expected.
The following sample code initializes various properties on an UltraWinTree control and illustrates how to populate the tree.
| Visual Basic | Copy Code |
|---|---|
Imports Infragistics.Win.UltraWinTree | |
| C# | Copy Code |
|---|---|
using Infragistics.Win.UltraWinTree; | |
