Responsive table with autoupdate
Responsive table with autoupdate
SnowLeopard
Posts: 1Questions: 1Answers: 0
I have a problem with responsive extenshion. I need to update my table every 5 seconds and use this initialization:
$(document).ready(function() {
var table = $('#sells').dataTable( {
"bFilter": false,
"processing": true,
"serverSide": true,
"ajax": "/scripts/get_sells.php",
"bProcessing": false
} );
setInterval( function () {
table.api().ajax.reload( null, false ); // user paging is not reset on reload
}, 5000 );
} );
} );
It works fine.
Then I added responsive class to my table. Now when table updates, expanded row collapses into one row.
Is there an easy way to fix this? Thanks.
This discussion has been closed.
Answers
I also have the same issue. Does anyone have a fix for this?