New to Telerik UI for WinFormsStart a free 30-day trial

Keyboard Navigation and Search

Updated over 6 months ago

Keyboard Navigation

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

KeyDescription
WinForms RadTreeView Up ArrowUp Arrowmoves the selection up in the nodes hierarchy
WinForms RadTreeView Down ArrowDown Arrowmoves the selection down in the nodes hierarchy
WinForms RadTreeView Left ArrowLeft Arrowcollapses a node
WinForms RadTreeView Right ArrowRight Arrowexpands a node
WinForms RadTreeView EnterEnterexpands/collapses a node
SpaceToggles node's check box
WinForms RadTreeView PageUpPageUpscrolls the scrolling area up with one frame (page)
WinForms RadTreeView PageDownPageDownscrolls the scrolling area down with one frame (page)
WinForms RadTreeView F2F2activates tree's editor and places it on the selected node
WinForms RadTreeView EscEscdeactivates tree's editor
WinForms RadTreeView HomeHomemoves the selection to the first visible node
WinForms RadTreeView EndEndmoves 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:

C#
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:

C#
radTreeView1.TreeViewElement.KeyboardSearchResetInterval = 500;

See Also