How to use scroller plugin with column reorder?
How to use scroller plugin with column reorder?
nikhilsheth2049
Posts: 17Questions: 4Answers: 0
I am using datatable scroller plugin with column reorder with server side processing. If I am trying to reorder my column it works fine for current records as soon as new set or records are loading it will not preserver column reorder and load data with default column order.
Thanks in advance.
This discussion has been closed.
Answers
What server-side processing script are you using? Are you reverse mapping the column information sent from the client-side? DataTables does actually reorder the columns, rather than just display them in a different order, so the indexes change.
The
column[i]['data']
parameter is the one to use for the reverse mapping: https://www.datatables.net/manual/server-side .Allan