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

Get the CheckedChildNodes collection for a particular node

4 Answers 49 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
NLV
Top achievements
Rank 1
NLV asked on 12 Mar 2010, 04:31 PM
Hello

I want to get all the checkedChildNodes of a particular node (not tree). I see that the CheckedNodes property for a tree returns all the CheckedChildNodes. How can get I it for a particular node without looping?

Thank you
Regards
NLV

4 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 15 Mar 2010, 04:04 PM
Hello NLV,

Please take a look at this link for solution.

Sincerely yours,
Veronica Milcheva
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.
0
NLV
Top achievements
Rank 1
answered on 15 Mar 2010, 04:38 PM
Hello Veronica Milcheva

I think you have mistaken this thread as a duplicate. In this thread i've asked about changing the "CheckChildNodes" of a tree view in the client side.

In this thread i'm talking about the "CheckedChildNodes" property of the tree which returns all the check nodes of the tree.

But i want to get all the checkedchildnodes under a "node" not a tree.

Hope you get it :).

Regards
NLV

0
Accepted
Veronica
Telerik team
answered on 18 Mar 2010, 11:44 AM
Hello NLV,

Sorry for the inconvenience. It was my mistake that I thought you were asking one and the same question twice.

There is no way to get the CheckedNodes of a node without looping in Javascript. Have you considered using the TriStateCheckBoxes = "true"? That way the node will automatically know if it's child nodes are checked and it will change it's state accordingly.

Please let me know if this was helpful.

Kind regards,
Veronica Milcheva
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.
0
NLV
Top achievements
Rank 1
answered on 18 Mar 2010, 11:56 AM
Dint know about that property. That is what exactly i wanted.

Thank you.

Regards
NLV
Tags
TreeView
Asked by
NLV
Top achievements
Rank 1
Answers by
Veronica
Telerik team
NLV
Top achievements
Rank 1
Share this question
or