ColReorder and date filter plugin.

ColReorder and date filter plugin.

jiricojirico Posts: 4Questions: 0Answers: 0
edited September 2012 in General
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?
This discussion has been closed.