I am using WPF MVVM and have used the HierarchicalDataTemplate to bind my hierichical data to my RadTreeView. However I am having performance issues. There is a large amount of data that needs to be bound and its not efficient to load all the data and then attempt to use LoadOnDemand as a means to improve the performance. I basically need to load the child items of the current item only once the expander is expanded. For each item I know whether it has children from a property that is returned with the data so I need in some way to have the expander indicate that there are children by using this property without the data preloaded and only when the expander is clicked must it go and load its children.
I have tried to get the data for two levels so that the expander appears however this is not ideal and impacts on performance. Thanks for your help.