TreeView with CheckBox

Posted by: admin on 17 April 2020, 3:37 am EST

    • Post Options:
    • Link

    Posted 17 April 2020, 3:37 am EST

    Hello my question is if you can get all the selected checks including the parent. I get the children with the “checkedItems” method, but I would like to get the father as well.

  • Posted 20 April 2020, 6:52 am EST

    Hi,

    There is no direct way to get all the checked items, parents included, in the TreeView. But you can create a method that will iterate over all the nodes and will return all the checked nodes including the parent.

    Please refer to the sample link below for reference:

    https://stackblitz.com/edit/js-uc7yir

    Note that the node is considered as a checked node if all of its children are checked. This means that intermediate nodes will not be returned.

    Regards,

    Ashwin

  • Posted 21 April 2020, 12:18 pm EST

    Thank you very much ashwin.saxena, I needed to be marked by the father with a son. But I’ll try to see if I can do it by example

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels