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

Access a node and check all its child

1 Answer 68 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Senthil
Top achievements
Rank 1
Senthil asked on 22 Oct 2013, 08:53 AM
Hi telerik folks,

How can I access a particular node (based on its text) of a dropdowntree from client and check it and all its child nodes?

Thankyou
Senthil

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Oct 2013, 09:38 AM
Hi Senthil,

Set the CheckBoxes property of the RadDropDownTree to CheckChildNodes and try the following JavaScript code.

JavaScript:
<script type="text/javascript">
    function checkNodes() {
        var raddropdowntree = $find('<%=RadDropDownTree1.ClientID %>');
        var tree = raddropdowntree.get_embeddedTree();
        tree.findNodeByText("NodeText").check();
    }
</script>

Thanks,
Shinu.
Tags
DropDownTree
Asked by
Senthil
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or