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?
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.
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.