New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Navigate to selected node in RadDropDownTree

Environment

Product RadDropDownTree for ASP.NET AJAX

Description

It is a good thing to improve the convenience of the form for the user. This can also happen with the dropdown tree by automatically navigating to the selected item when the user opens the dropdown.

Solution

You can achieve this using the following approach:

 <telerik:RadDropDownTree ... OnClientDropDownOpened="dropDownOpened">
            function dropDownOpened(sender, args) {
                var tree = sender.get_embeddedTree();
                var node = tree.get_selectedNode();
                node.expandParentNodes();
            }
In this article