Table always calls redraw.
Table always calls redraw.
I have a table which is configured like this:
[code]
datatable = jQuery('#table').dataTable( {
"bPaginate": false,
"bFilter": false,
"bInfo": false,
"bSearchable": false,
"bSort": false,
"sScrollY": 150,
"sScrollX": "1000px",
"bAutoWidth": false,
"fnDrawCallback": function() {
console.log( 'DataTables has redrawn the table' );
}
}); // end datatable
[/code]
And every time I do ANYTHING in the view I get the message "DataTables has redrawn the table'".. And I cant see whats wrong with this code. There is also alot more code around this table, but I dont understand what kind of code that would make the datatable redraw everytime anything is done in the view?
[code]
datatable = jQuery('#table').dataTable( {
"bPaginate": false,
"bFilter": false,
"bInfo": false,
"bSearchable": false,
"bSort": false,
"sScrollY": 150,
"sScrollX": "1000px",
"bAutoWidth": false,
"fnDrawCallback": function() {
console.log( 'DataTables has redrawn the table' );
}
}); // end datatable
[/code]
And every time I do ANYTHING in the view I get the message "DataTables has redrawn the table'".. And I cant see whats wrong with this code. There is also alot more code around this table, but I dont understand what kind of code that would make the datatable redraw everytime anything is done in the view?
This discussion has been closed.
Replies
http://datatables.net/forums/comments.php?DiscussionID=2148&page=1#Item_6
damn. If anyone has a clue about the original issue I would be soooooo extremely thankful.