New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Navigate to selected node in RadDropDownTree

Environment

ProductRadDropDownTree 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:

ASP.NET
 <telerik:RadDropDownTree ... OnClientDropDownOpened="dropDownOpened">
JS
            function dropDownOpened(sender, args) {
                var tree = sender.get_embeddedTree();
                var node = tree.get_selectedNode();
                node.expandParentNodes();
            }
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support