bootstrap-table icon indicating copy to clipboard operation
bootstrap-table copied to clipboard

Static table, content of single cell different when exiting search

Open Voxxie opened this issue 1 year ago • 1 comments

Description

We are using a static table.

When we change cell during search with a onclick event and clear out the search field, the cell is back to its original state instead of displaying the updated cell.

When we change a cell before using the search and then use the search, also the orginal cell is displayed. (Without the changes ) Is their a way to sync the search and nog search version of the table ?

Example(s)

Example editing before search:

Start status of the table: image

Changing a cell with a onclick event: image

Using the search: image

Example editing during search:

Start status of the table: image

Edit during search: image

Removing search: image

Voxxie avatar Aug 14 '23 14:08 Voxxie

I don't know if it helps, but have you tried using the data-maintain-meta-data="true" ? Basically it is applied to the select option, maybe it also affects on the changed values.

DataSupplier avatar Sep 23 '23 13:09 DataSupplier

You need to update the table's data after the onclick event (which can be obtained through getData), or you can directly use updateRow or updateCell to update the data in a row. This way, functions like search and sorting can work properly.

wenzhixin avatar May 09 '24 23:05 wenzhixin