Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82031

draw() on invisible rows

$
0
0

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);
    }
});

Viewing all articles
Browse latest Browse all 82031

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>