Added length options but default stays same...
Added length options but default stays same...
Hi again ;)
I've set some new length options for my datatable - but when I first load the page it still gives me only 10 results -- and I want 50 to be the new default. I guess I'm missing a parameter in here but I don't see which one on the docs page. Any hints?
$('#sitelog').dataTable( {
"aLengthMenu": [[50, 250, 500, 1000, 5000], [50, 250, 500, 1000, 5000]],
"sPaginationType": "full_numbers"
} );
http://www.runic-paradise.com/sitelog.php
/Andrew
I've set some new length options for my datatable - but when I first load the page it still gives me only 10 results -- and I want 50 to be the new default. I guess I'm missing a parameter in here but I don't see which one on the docs page. Any hints?
$('#sitelog').dataTable( {
"aLengthMenu": [[50, 250, 500, 1000, 5000], [50, 250, 500, 1000, 5000]],
"sPaginationType": "full_numbers"
} );
http://www.runic-paradise.com/sitelog.php
/Andrew
This discussion has been closed.
Replies
http://datatables.net/usage/options
Allan