RadControls for ASP.NET AJAX To scroll to the selected TreeNode after an AJAX request has occurred you should subscribe to the ClientEvents-OnResponseEnd event of RadAjaxPanel and use the ScrollIntoView() client-side method of RadTreeNode class like:
CopyASPX
<script type="text/javascript">
function OnResponseEnd(sender, eventArgs) {
var tree = $find("<%= RadTreeView1.ClientID %>");
var selectedNode = tree.get_selected();
if (selectedNode != null) {
selectedNode.scrollIntoView();
}
}
</script>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" ClientEvents-OnResponseEnd="OnResponseEnd">
</telerik:RadAjaxPanel>
See Also