HI
I have a RadTreeView inside RadAjaxPanel, I also have a textbox and button inside AjaxPanel, when the user clicks the button, Server side method executes and find appropriate node according to the text in textbox and select the first item.I want to scroll to selected node and I use ScrollIntoView with the following format:
Thanks In Advance
I have a RadTreeView inside RadAjaxPanel, I also have a textbox and button inside AjaxPanel, when the user clicks the button, Server side method executes and find appropriate node according to the text in textbox and select the first item.I want to scroll to selected node and I use ScrollIntoView with the following format:
<script type="text/javascript">
function OnResponseEnd(sender, arguments)
{
var treeviewInstance = <%=RadTreeView1.ClientID %>;
var selectedNode = treeviewInstance.SelectedNode;
if (selectedNode != null)
{
selectedNode.ScrollIntoView();
}
}
</script>
<radA:RadAjaxPanel
ID="RadAjaxPanel1"
runat="server"
ClientEvents-OnResponseEnd="OnResponseEnd">
</radA:RadAjaxPanel>
Thanks In Advance