constantin-p / cp-react-tree-table

A fast, efficient tree table component for ReactJS.

Home Page:https://constantin.software/cp-react-tree-table

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Updating children after row expand

anupalhub opened this issue · comments

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?

commented

+1

@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 ?