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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -