hi allen
i am using the individual column filter(input) feature via Server-side. i find the filtered info is "filtering from _MAX_ records" and the _MAX_ variable might be equals to "iTotalRecords" i set in Server-side.
then i got the filtered info after filtering DataTable like below:
Showing 1 to 25 of 74 entries (filtered from 25 total entries)
i think the total entries of filtered might be incorrect. in this case, "iTotalRecords" is 25 and "iTotalDisplayRecords" is 74. but there is 100 data before filtered. maybe i need change the jquery.dataTables.js or find another way to solve it?
here comes my discovering in jquery.dataTables.js(DataTables-1.9.4):
line-9329: "sInfoFiltered": "(filtered from _MAX_ total entries)",
line-2571: replace(/_MAX_/g, sMax);
line-2558: sMax = oSettings.fnFormatNumber( iMax );
line-2557: iMax = oSettings.fnRecordsTotal(),
line-11344~11351:
"fnRecordsTotal": function ()
{
if ( this.oFeatures.bServerSide ) {
return parseInt(this._iRecordsTotal, 10);
} else {
return this.aiDisplayMaster.length;
}
},
line-2025: oSettings._iRecordsTotal = parseInt(json.iTotalRecords, 10);
i am using the individual column filter(input) feature via Server-side. i find the filtered info is "filtering from _MAX_ records" and the _MAX_ variable might be equals to "iTotalRecords" i set in Server-side.
then i got the filtered info after filtering DataTable like below:
Showing 1 to 25 of 74 entries (filtered from 25 total entries)
i think the total entries of filtered might be incorrect. in this case, "iTotalRecords" is 25 and "iTotalDisplayRecords" is 74. but there is 100 data before filtered. maybe i need change the jquery.dataTables.js or find another way to solve it?
here comes my discovering in jquery.dataTables.js(DataTables-1.9.4):
line-9329: "sInfoFiltered": "(filtered from _MAX_ total entries)",
line-2571: replace(/_MAX_/g, sMax);
line-2558: sMax = oSettings.fnFormatNumber( iMax );
line-2557: iMax = oSettings.fnRecordsTotal(),
line-11344~11351:
"fnRecordsTotal": function ()
{
if ( this.oFeatures.bServerSide ) {
return parseInt(this._iRecordsTotal, 10);
} else {
return this.aiDisplayMaster.length;
}
},
line-2025: oSettings._iRecordsTotal = parseInt(json.iTotalRecords, 10);