minop1205 / react-dnd-treeview

A draggable / droppable React-based treeview component. You can use render props to create each node freely.
MIT License
519 stars 69 forks source link

Select child nodes when select parent node. #141

Open jeevasusej opened 1 year ago

jeevasusej commented 1 year ago

When do check the parent node checkbox, select parent node's children's checkbox by default and vice versa too.

minop1205 commented 1 year ago

@jeevasusej Is it a problem with the following demo? https://minop1205.github.io/react-dnd-treeview/?path=/docs/examples-tree-multiple-selections--multiple-selections-story

Is there any way to confirm the issues you mentioned?

jeevasusej commented 1 year ago

Yes, when we clicked on the child (checkbox), we do not know whether the parent is selected or not.

nilesh2b commented 1 year ago

@jeevasusej Yes right.

nilesh2b commented 1 year ago

@minop1205 Any solution here?

slince commented 1 year ago

+1

nilesh2b commented 1 year ago

@jeevasusej Did you find any solution for the same?

ebenezar commented 1 year ago

I have written a wrapper and used the following jquery fancytree, which solves all my problems.

https://github.com/mar10/fancytree