Set default value for the length menu and the number of records displayed
Set default value for the length menu and the number of records displayed
Using the initial set up, 10 records are displayed and the length menu displays 10. I'd like to display 25 records when the table is first displayed. How do I initialize the default values for (1) the number of rows displayed and (2) the value displayed in the length menu?
thanks in advance
thanks in advance
This discussion has been closed.
Replies
[code]
$(document).ready(function() {
var tableOptions = {
"fnRecordsDisplay":"25",
"fnRecordsTotal":"25"
};
$('#tbldatatable').dataTable(tableOptions);
} );
[/code]
Allan