I am currently using the RadTreeView to organize a list of unrelated items. As an example my top level consists of Projects and Contacts. Under the Projects node I have Owned, Monitored, and Participant nodes with LoadOnDemand enabled. Under each of those nodes I have project data nodes. When one of these nodes is selected an editable project detail form is diplayed. I would like to do the following:
1. Mark the "context" of the currently selected item. For example, if a project is selected I would identify the Projects node as the context node.
2. Reload the tree view
3. Expand the nodes under the context node.
There are a few scenarios where I would like to do this:
- I have just finished editing an item in the tree. For example, I may have changed the title displayed in the tree.
- I have just deleted an item from the tree
- I have just added an item to the tree
My first inclination was to use the FullPath property to identify my context node and then use GetItemByPath to retrieve that node after reloading the tree. I would then load and expand the context node's subtree. I have been encountering some difficulty with FulPath though. It appears that the FullPath property throws an exception for any node that has children that have not yet been loaded. Is this a bug or by design? Am I going about this the wrong way? Do you have any advice or sample code for this type of thing?
Thanks
Rob
