How to get the results using $.fn.dataTableExt.afnFiltering.push?

How to get the results using $.fn.dataTableExt.afnFiltering.push?

SivaGSivaG Posts: 2Questions: 0Answers: 0
edited June 2013 in General
I have used to get the results using $.fn.dataTableExt.afnFiltering.push


function FilterTable(state,high,low){


$.fn.dataTableExt.afnFiltering.push(
function( oSettings, aData, iDataIndex ) {
var iMin = Number(high);
var iMax = Number(low);
if(aData[2] == null) aData[2] = "0";
var iValue = Number(aData[2].replace(/[^0-9\.]+/g,""));
if ( iMin == "" && iMax == "" )
return true;
else if ( iMin == "" && iValue <= iMax )
return true;
else if ( iMin <= iValue && "" == iMax )
return true;
else if ( iMin <= iValue && iValue <= iMax )
return true;
return false;
}
);
$('#tableRows').dataTable().fnFilter(state,3, true, false);
alert($('#tableRows').dataTable());
}

How to check the return search results inside the function?Is it possible?
This discussion has been closed.