I'm sure I'm overlooking something simple, but here is the problem I face:
I have a LoadOnDemand TreeView that calls a WCF service to pull the data. Originally, I stored a private RadTreeViewItem property in the calling control (currentItem), so when the WCF returned, I could add the children to currentItem node.
This method worked fine until we tested against a production data source, which could take approximately 5 seconds to return the requested data. If the user selected a different node to expand during this time, my pointer reference would be messed up. Effectively adding the nodes for Node A to Node B.
So now the question, what is the best practice to insure the WCF return is dealing with the original TreeViewItem? I attempted to just send the RadTreeViewItem across as an object, but it will not serialized.
Another note: My next thought was to send the FullPath of the node to WCF and return it with the results. My question is, what if there are nodes with the same Header value. Will they return the same path?
Any thoughts/suggestions would be greatly appreciated.
Thanks,
Tony
I have a LoadOnDemand TreeView that calls a WCF service to pull the data. Originally, I stored a private RadTreeViewItem property in the calling control (currentItem), so when the WCF returned, I could add the children to currentItem node.
This method worked fine until we tested against a production data source, which could take approximately 5 seconds to return the requested data. If the user selected a different node to expand during this time, my pointer reference would be messed up. Effectively adding the nodes for Node A to Node B.
So now the question, what is the best practice to insure the WCF return is dealing with the original TreeViewItem? I attempted to just send the RadTreeViewItem across as an object, but it will not serialized.
Another note: My next thought was to send the FullPath of the node to WCF and return it with the results. My question is, what if there are nodes with the same Header value. Will they return the same path?
Any thoughts/suggestions would be greatly appreciated.
Thanks,
Tony