Access a node and check all its child

2 posts, 0 answers
  1. Senthil
    Senthil avatar
    7 posts
    Member since:
    Aug 2013

    Posted 22 Oct 2013 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Oct 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top