loading and displaying children on parent node expand action

3 posts, 1 answers
  1. Alex
    Alex avatar
    36 posts
    Member since:
    Sep 2010

    Posted 06 Sep 2010 Link to this post

    Hi,

    I have a collection of objects. I bind the collection to you TreeView. At the moment I get a top node from the DB, which has a parameter hasChildren. If it is true I add an empty child to parent's child collection. Then on expand of the parent node I want to load and display its children.

    At the moment when I expand I get and add children, but parent node only has one empty node. So the datasource does not get updated. Any idea what is going wrong? Are there a better way to do this?

    Thanks,

    Alex
  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 06 Sep 2010 Link to this post

    Hi Alex,

    We are glad that you found what you needed. Still I will paste a few more intresting links related to the LoadOnDemand feature of the RadTreeView that might help.

    LoadOnDemand demo
    LoadOnDemand help article

    If you need more info, please let us know.

    All the best,
    Tina Stancheva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top