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

Paging in tree view

3 Answers 261 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rupinder
Top achievements
Rank 1
Rupinder asked on 14 Jun 2011, 10:08 AM
Hi,

Does telerik Treeview(asp.net ajax control) support paging as we have lots of data that is displayed in triee view. so keeping perofrmance in mind, can we have some paging feature in Tree view?

Kindly reply at the earliest

Rupinderjit Singh

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Jun 2011, 01:57 PM
Hello Rupinder,

As far as I know, there is no built-in way to load only a preset number of nodes at one level in the treeview and then request additional nodes (paging). The nodes can be loaded only once.

Thanks,
Princy.
0
Bo
Top achievements
Rank 1
answered on 16 Jun 2011, 08:28 PM
Has anyone explored any tricks to make this possible.  I am in the process of exploring two options.

Option 1:
- return id/value information in a large string for remaining nodes on a "More" created node stored in a custom attribute.  The click event for the node would then parse the list and create new additional child nodes in batches (of say 100) until it's gone the id/values have all been retrieved from the attribute.

Option 2:
- return a more node that attempts to invoke expand on the parent again providing context to an offset position in the web service call.  In the web service return the next set of offset items until end.  This follows the load on demand combo pattern.  However, i suspect when the web service returns the old nodes may be replaced rather than appended to??
0
Dimitar Terziev
Telerik team
answered on 27 Jun 2011, 08:21 AM
Hello Bo,

As Princy has pointed, there is no build-in paging functionality of the RadTreeView.

Regarding your options of implementing such a functionality, my suggestion is to use the second one. There is though some limitation. In order to achieve this functionality you should not use the build in web service functionality, but call the web service method manually and then creating the items on the client-side filling them with the data returned from the service method. 

Best wishes,
Dimitar Terziev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
TreeView
Asked by
Rupinder
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Bo
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or