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

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

ruby - Net::HTTP extremely slow responses for HTTPS requests -