You can specify the options in the length drop down menu through the oLanguage.sLengthMenu parameter ( http://datatables.net/usage#oLanguage.sLengthMenu ). Just stick in a select menu with the option that you want :-)
I am afraid, it is not enough this explanation, where do I need to put the custom select and what would be their name or id? I need to set 50, 100, 500 and 1000 options.
Have a look at this example for how to pass in customised language variables to DataTables: http://datatables.net/examples/example_language.html
For sLengthMenu you could pass in "50..." (in place of _MENU_) which will do the trick for you. There is no need to assign id or classes - DataTables will do that for you. :-)
Sorry I still don't understand how to do this. I'd like the default dropdown for number of items to show but have 25 as the selected instead of 10. When I try to do this with my own select menu, I lose my pagination.
Replies
You can specify the options in the length drop down menu through the oLanguage.sLengthMenu parameter ( http://datatables.net/usage#oLanguage.sLengthMenu ). Just stick in a select menu with the option that you want :-)
Allan
I am afraid, it is not enough this explanation, where do I need to put the custom select and what would be their name or id? I need to set 50, 100, 500 and 1000 options.
Thanks in advance.
Have a look at this example for how to pass in customised language variables to DataTables: http://datatables.net/examples/example_language.html
For sLengthMenu you could pass in "50..." (in place of _MENU_) which will do the trick for you. There is no need to assign id or classes - DataTables will do that for you. :-)
Allan
Allan