This is a migrated thread and some comments may be shown as answers.

loading and displaying children on parent node expand action

2 Answers 51 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 06 Sep 2010, 01:19 PM
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 Answers, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 06 Sep 2010, 03:14 PM
0
Accepted
Tina Stancheva
Telerik team
answered on 06 Sep 2010, 03:58 PM
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
Tags
TreeView
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or