Display length and sorting the table
Display length and sorting the table
![mahesh3005](https://secure.gravatar.com/avatar/ff72f5b62add478f2b9bc0bc50c9d389/?default=https%3A%2F%2Fvanillicon.com%2Fff72f5b62add478f2b9bc0bc50c9d389_200.png&rating=g&size=120)
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...
});