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

Unable to set sortable flag via updateColumnTitle()

Open antonioaltamura opened this issue 3 years ago • 1 comments

Description

I would like to be able to enable the sortable option in a specific column after I got the results (from the server). To give a bit of context, I want to enable sortable only if the number of results is below a threshold. It seems updateColumnTitle is not the right way, as it doesn't update the sortable option. https://live.bootstrap-table.com/code/antonioaltamura/10565

I also tried refreshOptions(), which actually works, but it forces a refresh of the whole table, and that includes an extra remote request to fetch the data, and I would like to avoid that. As a side, if you use refreshOptions in responseHandler or onLoadSuccess you create an endless loop. https://live.bootstrap-table.com/code/antonioaltamura/10567

Example(s)

https://live.bootstrap-table.com/code/antonioaltamura/10565

https://live.bootstrap-table.com/code/antonioaltamura/10567

antonioaltamura avatar Feb 17 '22 10:02 antonioaltamura

This used to have some discussion going on, not sure what happened since then. Will this be fixed?

antonioaltamura avatar Sep 08 '22 13:09 antonioaltamura