react-bootstrap-table2 icon indicating copy to clipboard operation
react-bootstrap-table2 copied to clipboard

Save Button to save modified rows\data

Open medaramesh opened this issue 3 years ago • 0 comments

Hi I am getting data from backend api to display in the table. After editing few rows, I would like to save data. So I have added Save button and on clicking save button, I am trying to save only modified rows ( for example if I display 100 rows and modify only 5 rows - I would like to send the only 5 rows data to back end). Is there way to get only modified data from bootstrap table or only modified row keys etc. I tried the following solution and no luck so far. Trying to store initial data on the page and comparing with the data from bootstrap to get only modified rows. But so far no luck, I have tried to store it as global value, tried useref etc. Any suggestions or thoughts please... Onclicking the button, hte previousdata is always showing as latest data from the table. https://codesandbox.io/s/save-button-vumss9

medaramesh avatar Apr 15 '22 16:04 medaramesh