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

RadTreeView LoadOnDemand checkboxes

1 Answer 76 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Harold
Top achievements
Rank 1
Harold asked on 18 Sep 2008, 11:53 AM
Hi,

we use the RadTreeView in combination with LoadOnDemand and checkboxes for each node. But when we check a node the child nodes aren't checked because the children aren't loaded yet. So we have to first expand the node and then check the the node to automatically check all the child nodes.

Is there a common solution for this?

Perhaps a solution would be when an user checks a node all the child nodes will be loaded and checked automatically (recursive). But how?

I have tried calling the NodeExpand event from the NodeCheck event but the + symbol doesn't change. And when the user presses the + button all items appear twice.

Kind regards,
Harold

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 19 Sep 2008, 08:19 AM
Hi Harold,

You can check/uncheck the child Nodes either in the OnClientNodePopulated client-side or in the NodeExpand server-side event handler.

Please see this help topic for more information about both approaches.

Sincerely yours,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Harold
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or