iDisplayLength
iDisplayLength
Im using DataTables 1.8.2 with Scroller 1.0.1, when I instantiate datatable
$(document).ready(function() {
var oTable = $('#models').dataTable( {
'sScrollY':'300px',
'iDisplayLength':10,
'sAjaxSource':'<?= $ajaxSource ?>',
'bServerSide':true,
'bDeferRender':true,
'sDom':'frtiS'
} );
});
The iDisplayLength is always 3, whether I set it explicitly or not. I removed anywhite spaces.
But the value wont change.
The Request
http://localhost/projects/dbtest.com/wp-content/plugins/modelmanagement/ajax.php?action=Models&_=1326085488298&sEcho=2&iColumns=7&sColumns=&iDisplayStart=0&iDisplayLength=3&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&iSortingCols=1&iSortCol_0=0&sSortDir_0=asc&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true
$(document).ready(function() {
var oTable = $('#models').dataTable( {
'sScrollY':'300px',
'iDisplayLength':10,
'sAjaxSource':'<?= $ajaxSource ?>',
'bServerSide':true,
'bDeferRender':true,
'sDom':'frtiS'
} );
});
The iDisplayLength is always 3, whether I set it explicitly or not. I removed anywhite spaces.
But the value wont change.
The Request
http://localhost/projects/dbtest.com/wp-content/plugins/modelmanagement/ajax.php?action=Models&_=1326085488298&sEcho=2&iColumns=7&sColumns=&iDisplayStart=0&iDisplayLength=3&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&iSortingCols=1&iSortCol_0=0&sSortDir_0=asc&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true
This discussion has been closed.
Replies
Allan
Delighted you like DataTables!
Regards,
Allan