We are dynamically creating a Menu using RadTreeView control and each node is binded with .aspx page. When a node is clicked, the whole page postbacks and redirects to the assigned .aspx page and the RadTreeView control(Menu) will be recreated
. As the page postbacks, the selected node losts its focus and all the nodes are getting collapsed.
As per our requirement, We need to set the focus on the selected node and its parent node to be expanded, even if the page postbacks. Please help us on this.
We tried getting the selected node value on RadTreeView_NodeClick event and this event is not firing consistantly.
FYI, we are binding the RadTreeView control using LINQ on Page_Load event
and below is the code for the same.
rtvMenu.DataSource = v_Menu;