This is a migrated thread and some comments may be shown as answers.

Recommended practise for a TreeView if data source is a webservice

2 Answers 62 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Hinek
Top achievements
Rank 1
Hinek asked on 02 Apr 2012, 02:46 PM

I'm currently evaluating the TreeView for the following Scenario:

  • data source is a webservice / WCF service
  • 2000+ items
  • service method allows partial loading

So I want to load only the root and the first sublevel of items and then lazy load items as nodes are expanded. My Questions:

  1. Should I build the nodes myself or use the DataSource property?
  2. Where do I find tutorials how to build a custom lazy load?

2 Answers, 1 is accepted

Sort by
0
Hinek
Top achievements
Rank 1
answered on 04 Apr 2012, 08:17 AM
I'm not sure if this is the best solution but I now used TreeNodeExpandMode.ServerSideCallBack and the NodeExpand event. Loading the root node in PageLoad and then loading the child nodes in NodeExpand event.
0
Accepted
Plamen
Telerik team
answered on 04 Apr 2012, 10:37 AM
Hi Hinek,

 
You can refer to our Load on Demand Modes demo where are shown all the modes that are supported by RadTreeView. Each of them is implemented in a different way and their main advantages and disadvantages are explained in our documentation section here. I will recommend you also the data binding section here.

You can also review our Performance demo where is shown how to load a larger quantity of nodes. 

Hope this will help you.

All the best,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
Hinek
Top achievements
Rank 1
Answers by
Hinek
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or