Table always calls redraw.

Table always calls redraw.

dennedenne Posts: 30Questions: 0Answers: 0
edited September 2010 in General
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?

Replies

  • dennedenne Posts: 30Questions: 0Answers: 0
    Ahh. I found the issue, it had to do with a workaround for another problem I have with datatable:
    http://datatables.net/forums/comments.php?DiscussionID=2148&page=1#Item_6
  • dennedenne Posts: 30Questions: 0Answers: 0
    Im running 1.7.2 version.
  • dennedenne Posts: 30Questions: 0Answers: 0
    Had to remove the workaround described in the other post linked above, which now destroys the header width. :/
    damn. If anyone has a clue about the original issue I would be soooooo extremely thankful.
This discussion has been closed.