I have a RadTreeView on a MasterPage inside 2 nested RadSplitters. I am using LoadOnDemand, but need to be able to expand nodes from serverside code. I am attempting to do this by calling the method I have written to expand the node to the ResponseScripts. This method is in a RadCodeBlock as follows:
<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
<script type="text/javascript">
function expandNode(nodeid) {
var treeView = $find("<%= NavigationTreeView.ClientID %>");
var node = treeView.findNodeByValue(nodeid);
if (node) {
node.expand();
return true;
}
return false;
}
</script>
</telerik:RadCodeBlock>
My problem is that I am not able to access the RadTreeView to expand the nodes. I would appreciate any guidance on how to access this treeview from javascript using $find.
Thanks!
Lauren Kirschner