New to Telerik UI for WinForms? Download free 30-day trial

Keyboard Navigation and Search

Keyboard Navigation

The user can navigate RadTreeView and control TreeView modes using the following keyboard commands:  

Key Description
WinForms RadTreeView Up Arrow Up Arrow moves the selection up in the nodes hierarchy
WinForms RadTreeView Down Arrow Down Arrow moves the selection down in the nodes hierarchy
WinForms RadTreeView Left Arrow Left Arrow collapses a node
WinForms RadTreeView Right Arrow Right Arrow expands a node
WinForms RadTreeView Enter Enter expands/collapses a node
Space Toggles node's check box
WinForms RadTreeView PageUp PageUp scrolls the scrolling area up with one frame (page)
WinForms RadTreeView PageDown PageDown scrolls the scrolling area down with one frame (page)
WinForms RadTreeView F2 F2 activates tree's editor and places it on the selected node
WinForms RadTreeView Esc Esc deactivates tree's editor
WinForms RadTreeView Home Home moves the selection to the first visible node
WinForms RadTreeView End End moves the selection to the last visible node

RadTreeView allows navigation through the visible nodes by using keyboard. Two scenarios are supported by default:

  • Pressing a character will select consequently each node starting with this character

  • Typing more than one character will navigate to the first node matching the typed string

WinForms RadTreeView Keyboard Search

To enable this functionality a single property setting is needed:

radTreeView1.KeyboardSearchEnabled = true;

radTreeView1.KeyboardSearchEnabled = True

Another property of interest is the KeyboardSearchResetInterval. It is used to determine what time between keystrokes will be considered as typing. Consequent keystrokes with performed faster than the specified interval will be considered typing and once the time elapses, the matching node (if such) will be selected. Here is how to access this property to change the value of the timer:

radTreeView1.TreeViewElement.KeyboardSearchResetInterval = 500;

radTreeView1.KeyboardSearchResetInterval = 500

See Also

In this article