This question is locked. New answers and comments are not allowed.
Hi,
I have a Silverlight RadTreeView which is going to be used across a number of pages. I need to be able to persist which node is selected across page loads and refreshes. I am attempting to do this by storing info on the selected nodes in the Silverlight local storage, and then on load I am populating the treeview again and then trying to select the correct node.
I have seen code samples which loop through the items to find the correct one, and use the ItemContainerGenerator to get the RadTreeViewItem and then set isSelected etc. This approach doesn't work for me because I need to do this on page load, and the containers haven't been generated.
I have tried subscribing to the RadTreeView.ItemContainerGenerator.StatusChanged event and waiting for the status to be ContainersGenerated but this only seems to be for the containers at the top level. If the node I want to select is several nodes down then the container for it still has not been generated.
Ideally I think what I want to do is to hook into some event for all containers having been generated, or for data binding to be completed. Is there any such events, or is there any other approach that I can use ?
Thanks,
Steven.