I have a RadTreeView on a MasterPage inside 2 nested splitters. 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:
My problem is that I am not able to access the RadTreeView to expand the nodes. Please give me some guidance on how to access the RadTreeView.
Thanks!
Lauren Kirschner
<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. Please give me some guidance on how to access the RadTreeView.
Thanks!
Lauren Kirschner