Paging in tree view

4 posts, 0 answers
  1. Rupinder
    Rupinder avatar
    13 posts
    Member since:
    Feb 2008

    Posted 14 Jun 2011 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Jun 2011 Link to this post

    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.
  3. Bo
    Bo avatar
    3 posts
    Member since:
    Jun 2011

    Posted 16 Jun 2011 Link to this post

    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??
  4. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 27 Jun 2011 Link to this post

    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.

Back to Top