Article information
Article relates to
RadTreeView
Created by
Tihomir Petkov
Last modified
January, 20, 2009
Last modified by
Nikolay Atanasov
How to bind RadTreeView to hierarchical data and use load-on-demand?
1. This article is based on the approach described in the Populating Silverlight TreeView from WCF Service with LINQ to SQL article. Therefore, before going further make sure you’ve read and understood it, so that you have the necessary background.
2. Now that we have the basis set up it’s time to go on. First we need to add an event handler for the Expanded event:
5. After that we have to modify the FindChildren() method by removing the iterative call:
6. That’s it – you now have a treeview bound to a collection of custom objects which are loaded on demand.
Attached, please find a sample project demonstrating the above approach.
Resources Buy Try