javascript - How to save DataTable Column Reorder? -
i using colreorder
in javascript column reorder set in way:
var table = $('#cardsgrid_grid').datatable(); new $.fn.datatable.colreorder(table);
column reorder works fine still have issue. when i'm refreshing page, or returning one, each column change returned original need move colums again. basically, column move lives till kind of page refresh.
is there way somehow store changes? (while current session still active).
take @ state saving: https://www.datatables.net/release-datatables/extensions/colreorder/examples/state_save.html
it's simple adding option initialisation:
var table = $('#cardsgrid_grid').datatable({ statesave: true }); new $.fn.datatable.colreorder(table);
Comments
Post a Comment