After fnFilter searching how to know the total no of searched recourds in table.
After fnFilter searching how to know the total no of searched recourds in table.
sathishhavaligi
Posts: 1Questions: 0Answers: 0
I am doing search operation in data table.
I am writing code like this.
var oTable = $('#datatable-passages-list').dataTable(
{ "bDestroy":true,
"bPaginate": true,
"aoColumns": [null, null, null, null, null, null, null, null,null],
"aoColumnDefs": [{"bSortable": false, "aTargets": [0,1,9]}],
"oLanguage": {
"sZeroRecords": "No Passage found matching the search criteria.",
"sInfoFiltered": "(filtered from _MAX_ assessments)"
}
});
oTable.fnFilter(StarsUtility.Trim($('#myInputTextField').val()));
When I am searching some string, let us think search result is 5. At that time I am no need to show the paging, I want to show only total search results is more then 10.
How can I find the search results is more then 10 or not?
Please give me some suggestions on the above query,
Thanks,
Sathish.H
I am writing code like this.
var oTable = $('#datatable-passages-list').dataTable(
{ "bDestroy":true,
"bPaginate": true,
"aoColumns": [null, null, null, null, null, null, null, null,null],
"aoColumnDefs": [{"bSortable": false, "aTargets": [0,1,9]}],
"oLanguage": {
"sZeroRecords": "No Passage found matching the search criteria.",
"sInfoFiltered": "(filtered from _MAX_ assessments)"
}
});
oTable.fnFilter(StarsUtility.Trim($('#myInputTextField').val()));
When I am searching some string, let us think search result is 5. At that time I am no need to show the paging, I want to show only total search results is more then 10.
How can I find the search results is more then 10 or not?
Please give me some suggestions on the above query,
Thanks,
Sathish.H
This discussion has been closed.