mercredi 28 janvier 2015

Datatables array of visible column mData or mName?


I am using the colReorder and colVis plugins for Datatables, and on visibility toggle or drag/drop I need an array with the order of visible columns. Index won't be useful here as i'm trying to save the new order, so I want to push column mData or sName to the array. Also once I have this array, upon reload - how do I sort the table by mData/mName? Thanks in advance.



taskgrid.on('column-visibility', function (e, settings, colIdx, visibility) {
console.log(taskgrid.columns().data(name))
});




Aucun commentaire:

Enregistrer un commentaire