kvision icon indicating copy to clipboard operation
kvision copied to clipboard

How to update tabulator row data without re-rending whole table

Open chavu opened this issue 3 years ago • 1 comments

I'm using redux state property to populate tabulator table. I use a form in dialog window to enable user to edit a single record in the table. After submiting/saving form data the whole page and table are being reloaded and filters are reset. How can I make sure that the page and table are not reload but only the updated row is re-rended?

chavu avatar Mar 29 '22 08:03 chavu

Do you use built-in Tabulator component data binding? As you can see here: https://github.com/rjaros/kvision/blob/master/kvision-modules/kvision-tabulator/src/main/kotlin/io/kvision/tabulator/Tabulator.kt#L862 the Tabulator.replaceData() method is used. According to the tabulator documentation it should not reset tabulator state.

rjaros avatar Mar 29 '22 13:03 rjaros