ColReorder and date filter plugin.
ColReorder and date filter plugin.
I'm using a date-filter plugin that defines what column you're trying to filter:
[code]
jQuery.fn.dataTableExt.afnFiltering.push(
function( oSettings, aData, iDataIndex ) {
....
iStartDateCol = 5; //define col
aData[iStartDateCol] //get col
...
[/code]
In this case, I define the column as the 5th. But if the user reorder the column it will not be the 5th anymore. Is it possible to define the column in a more flexible way?
[code]
jQuery.fn.dataTableExt.afnFiltering.push(
function( oSettings, aData, iDataIndex ) {
....
iStartDateCol = 5; //define col
aData[iStartDateCol] //get col
...
[/code]
In this case, I define the column as the 5th. But if the user reorder the column it will not be the 5th anymore. Is it possible to define the column in a more flexible way?
This discussion has been closed.