I am currently working on the integration of DataTables with Pusher and everything so far works great with one exception: at the moment I am updating the rows using:
table.row(rowElement).data(date).draw (false);
however, draw()
only refreshes the visible rows. How can I refresh other rows that are invisible at the moment, e.g. are on another page?
Here is my initializer:
var table = $('#example').DataTable( {
"ordering": false,
"bLengthChange": false,
deferRender: false,
pageLength: 10,
ajax: '{{ absolute_url(path('posts')) }}',
columns: [
{
data: 'name',
name: 'name'
},
{
data: 'content',
name: 'content'
},
{
data: 'isActive',
name: 'isActive'
},
{
data: 'isReaded',
name: 'isReaded'
},
{
data: null,
className: 'change-status',
defaultContent: '<button>XXXX</button>'
}
],
createdRow: function (row, data, dataIndex) {
rowClass($(row), data);
}
});