Setting table properties after it has been initialized
Setting table properties after it has been initialized
// Initializing all tables of class "dataTable"
$('.dataTable').dataTable({
"sPaginationType" : "full_numbers"
});
....
....
....
// Later for a given table I need to set some specific values. when I do this, I get an error that the table has already been initialized
$("#testTable").dataTable({
"iDisplayLength" : 50,
"bAutoWidth" : false
});
Question - How can I set these properties after a table has been initialized?
$('.dataTable').dataTable({
"sPaginationType" : "full_numbers"
});
....
....
....
// Later for a given table I need to set some specific values. when I do this, I get an error that the table has already been initialized
$("#testTable").dataTable({
"iDisplayLength" : 50,
"bAutoWidth" : false
});
Question - How can I set these properties after a table has been initialized?
This discussion has been closed.
Replies
Allan