Recommended practise for a TreeView if data source is a webservice

3 posts, 1 answers
  1. Hinek
    Hinek avatar
    6 posts
    Member since:
    Mar 2012

    Posted 02 Apr 2012 Link to this post

    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. Hinek
    Hinek avatar
    6 posts
    Member since:
    Mar 2012

    Posted 04 Apr 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Plamen
    Admin
    Plamen avatar
    2733 posts

    Posted 04 Apr 2012 Link to this post

    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.
Back to Top