sSortDataType with timepicker

sSortDataType with timepicker

erickveraserickveras Posts: 4Questions: 0Answers: 0
edited November 2011 in General
Hi,

It's my first post here..

Anyone does a "sSortDataType" when use textfield with timepicker ?

The sort not happened becouse the column is order how string not a date.

[code]
$.fn.dataTableExt.afnSortData['dom-text'] = function ( oSettings, iColumn )
{
var aData = [];
$( 'td:eq('+iColumn+') input', oSettings.oApi._fnGetTrNodes(oSettings) ).each( function () {
aData.push( this.value );
} );
return aData;
}
[/code]

Thanks..

Replies

  • erickveraserickveras Posts: 4Questions: 0Answers: 0
    Resolved...
    I change the form of the datatable was rendering and then corrected the column order.
This discussion has been closed.