Hello Jason Tung,
In your case you can use ContainerBindings
and bind the IsExpanded
property of your items to an IsExpanded
property of the business object displayed by the RadTreeViewItem
Then, while you are loading the products for the selected category, you can check if the IsExpanded
property of the product is set to True
and if it is you can load the OrderDetail
info for this product.
I have prepared a simple example demonstrating how you can accomplish this. Please take a look at it and let me know if it works for you or if I can help you further.
All the best,
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.