Programatically checking childnodes

3 posts, 1 answers
  1. Niranjan
    Niranjan avatar
    9 posts
    Member since:
    Sep 2017

    Posted 17 Dec 2017 Link to this post

    Hello,

    I want to first retrieve the node that is checked and then programatically check its child nodes.
    Any help is appreciable!

    Thanks,

    Niranjan

  2. Answer
    Neli
    Admin
    Neli avatar
    64 posts

    Posted 19 Dec 2017 Link to this post

    Hi Niranjan,

    You can subscribe to the check event of the TreeView. In the event handler you can retrieve the checked node in the following way:
    var checkedNode = e.node

    Then you can retrieve the data of the node , using the dataItem method. In case the node has child nodes, you can check them programmatically. An approach for checking nodes is described in the linked how-to article. The same approach is used in the following Dojo example


    The following Demo 
    Regards,
    Neli
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Niranjan
    Niranjan avatar
    9 posts
    Member since:
    Sep 2017

    Posted 02 Jan in reply to Neli Link to this post

    Hello Neli,

    The solution provided works like a boon!

    Thank you,
    Niranjan

Back to Top