loading existing tree data on-demand and on page load

2 posts, 0 answers
  1. Ed
    Ed avatar
    1 posts
    Member since:
    Jun 2015

    Posted 13 Jul 2015 Link to this post

    Hi

     This is probably a really dumb question, but can anyone point me to a simple example of how I can automatically select and expand nodes on my tree on page load?

     Our tree contains a great deal of data, so we're using load on-demand. I need to create a page that allows users to edit an existing tree, but I can't seem to work out how I can load on-demand only the ticked nodes and their siblings.

  2. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 15 Jul 2015 Link to this post

    Hello,

    There are two possible approaches:
    • Include the "expanded" and "selected" fields in the returned items with the value set to true for the nodes that should be expanded and selected.
    • Use the expandPath and select methods(live demo).

    Regards,
    Daniel
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top