<telerik:RadTreeView ID="radTreeView" runat="server" Width="100%" EnableDragAndDrop="true" EnableDragAndDropBetweenNodes="true"
OnNodeClick="radTreeView_OnNodeClick" OnClientNodeCollapsing="OnClientNodeCollapsing"
OnNodeDrop="radTreeView_OnNodeDrop">
<WebServiceSettings Path="BuildTrgMP.aspx" Method="GetChildNodes" />
</telerik:RadTreeView>
I have a web service method which populates the tree when nodes are clicked.
The page in question accepts an id in the query string and the id represents the Value of a node in the tree which can be any node in the tree.
The idea is that when the page starts, the user is placed in the tree with the tree expanded and the node with the parameter id selected.
The problem is that there seems to be a conflict between nodes loaded client side by the webservice and nodes loaded server side in page load ie doing expands and searches for nodes server side doesn't find anything because they haven't been loaded client side.
If I code to populate the heirarchy server side in Page_Load, when the page appears, no nodes are expanded, although if I expand them, I come to my selected node. It almost as if having webservice loading conflicts with server side loading.
So to get back to the requirements:
- I have a tree which loads branches using the webservice
- When the page loads, in Page_Load I want to be able to set a currently selected node (which can be anywhere in the tree and at any level) and I want the tree hierarchy to it to be expanded (all other paths can be collapsed)
How do I do it please ?
Thanks + regards
Graham Plowman