Display length and sorting the table
Display length and sorting the table

Hi All,
Suppose the display length is selected as 10 records and if I click on any column to sort it , the data table is showing records > 10 , because I have selected 10 records to show , it should sort the data within the 10 records.
is there a setting for this in data table?
Suppose the display length is selected as 10 records and if I click on any column to sort it , the data table is showing records > 10 , because I have selected 10 records to show , it should sort the data within the 10 records.
is there a setting for this in data table?
This discussion has been closed.
Replies
$.fn.dataTableExt.afnFiltering.push(function(oSettings, aData, iDataIndex) {
// your custom code here should check if the iDataIndex is inside the range of filtered rows and if so, return true...
});