Skip to content Skip to sidebar Skip to footer

How I Change Jquery Datatables Default Row Count Shown

Datatables has 4 sizes of records to show: 10,25,50,100. I just want table show 15 records as default. am doing this but this is not work for me 'aLengthMenu': [ 15, 25, 50, 100 ],

Solution 1:

You have to put the entire contents of aLengthMenu property(ordenation and values)

try this:

"aLengthMenu": [[15, 25, 50, 100], [15, 25, 50, 100]],
"iDisplayLength": 15

Post a Comment for "How I Change Jquery Datatables Default Row Count Shown"