constantin-p / cp-react-tree-table

A fast, efficient tree table component for ReactJS.
https://constantin.software/cp-react-tree-table
MIT License
94 stars 27 forks source link

Updating children after row expand #23

Closed anupalhub closed 2 years ago

anupalhub commented 4 years ago

Hi,

How can we update the table after the state change. I am updating the state with children of selected row on click. But the table not get update with new children underneath that row.

Can we achieve in the current version?

thekennysong commented 3 years ago

+1

rachita18144 commented 3 years ago

@anupalhub you can update the data as well as it's children in your original array and render the entire data using TreeState.create(). However, I couldn't find any way to update the children without re-rendering the entire table state. Is there any way to do that or if that functionality is not there, is there any plan to implement it ?