This is a migrated thread and some comments may be shown as answers.

How to refresh treeview, persist node selection

1 Answer 150 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Pravin
Top achievements
Rank 1
Pravin asked on 18 Feb 2015, 05:50 AM
Dear All
    I have used Rad Treeview in ASP.NET, I want to refresh my treeview and it can persist old node selection.
How to do it ?
Help will really appreciating.

Thanks
koolprasad

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 20 Feb 2015, 01:56 PM
Hello Koolprasad,

By default the RadTeeView persists its selection across post-backs and it's not necessary to store its state explicitly . Could you please elaborate a bit more on the exact scenario that you are trying to implement and why the old node selection is not persisted?

If for some reason the selection is lost you can store the lastly selected node in hidden field for example, retrieve that node by using the RadTreeView client-side object method findNodeByText(string text) and select it explicitly. Please find in RadTreeView object client-side API article.



Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Pravin
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or