In order to expand the items of RadTreeListView
when the control's settings are reloaded from the storage, you can call the ExpandHierarchyItem() method
for each item needed. For achieving this, you can subscribe to the RowIsExpandedChanged
event of the control. Within the event handler you can get the expanded item through the DataContext
of the row and cast it to the needed object type. Please take a look at the snippet below.
var item = e.Row.DataContext
After getting the item, you can save it somewhere and when the control is reloaded from the storage, iterate over all saved items and call the ExpandHierarchyItem()
for each one.
Additionally, you may find the Events
topic useful on the matter.
I hope this helps.
All the best,
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.