I am having a problem with Bootstrap-table (bootstrap-table.com v1.16), as I am looking for a way to use the 'checkby' function with a table with more data than a page can display (I only have 30 rows, and I may not be able to display all the 30 rows by default for display reasons).
So, I have 30 rows and I want to check some rows by value, but some values are not on the current visible page. When I use the 'checkby' function, it only checks for the values that are currently displayed on the page. And then I try to order them by whether they are checked or not...
The #tableFonctions is already loaded with data before using this :
$("#tableFonctions").bootstrapTable('checkBy', { field: 'Id', values: idFonctions });
$("#tableFonctions").bootstrapTable('refreshOptions', { sortName: "Etat", sortOrder: "desc" });
Note that the field 'Etat' is my checkbox field. You can try this here : Live demo
Do you have any idea of how it can be done without modifying the source code ?
I succeeded by another mean (using a modified 'updateRow' function I can provide you if you want) but I still have a problem, but I will find a way for this and is not the main topic :)
Thanks !
Aucun commentaire:
Enregistrer un commentaire