How to prevent cascade checked in tree grid

Posted by: cyberesident on 9 July 2021, 4:58 am EST

  • Posted 9 July 2021, 4:58 am EST

    Hi team,

    I’m using check box in tree grid with @grapecity/wijmo.grid.selector

    When all of the sub elements are checked, I want to prevent the way the upper elements are checked.

    please provide solution for this issue.

    Thank you.

  • Posted 12 July 2021, 7:22 am EST

    Hi,

    This is the default behavior of the Selector to check the parent checkbox if all the child checkboxes are checked. Could you please explain more about your case that why you need to prevent this functionality, is it causing some issues in your application?

    Regards

  • Posted 13 July 2021, 8:56 pm EST

    Thank you for your comment.

    I want to make a folder structure. I hope the empty folder will be maintained even if all of the descendants disappear.

    So is there any other way to solve this problem?

  • Posted 14 July 2021, 8:04 am EST

    If there are no child items in the dataSource for the parent row then treeGrid doesn’t remove the parent row it already maintains the folder structure and the parent row remains visible.

    For better understanding you may refer to the below sample, In the sample, first row doesn’t have child items but it is still visible.

    https://stackblitz.com/edit/js-dafzpz?file=index.js

Need extra support?

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

Learn More

Forum Channels