I'm using tablesorter plugin for column sorting and dragtable plugin for rearranging the column order. Also, I'll update the table content using ajax on some button clicks.
So the problem here is, when I rearrange the column order using drag and drop and then update the using ajax, the column sorting is not updated according to the column order. That is, when we click on say Column1, the sorting is done based on data in Column2.
I'm using this piece of code for ajax update. jQuery("#Table").trigger('updateRows');
I have also tried updating with jQuery("#emailListTable").trigger('updateAll'); In this case, column drag and drop stopped working.
Any other way to tell tablesorter plugin that column order is changed?
Plugin details: TableSorter : http://tablesorter.com/docs/ Dragtable : http://akottr.github.io/dragtable/