DatatableBundle icon indicating copy to clipboard operation
DatatableBundle copied to clipboard

Refresh Table Data After Multiple Select

Open dahomz opened this issue 7 years ago • 0 comments

When following the 'Multiple Actions how do I add a checkbox for each row?' example I experienced an issue where the datatable was not refreshing after the record had been updated in database.

Seems that the success function in multipleRaw.js.twig was not working for me.

 success: function(msg) {
                    $('#{{ id }}').trigger('dt.draw');
                },

It was replaced with;

success: function(msg) {
                    $('#{{ id }}').DataTable().ajax.reload(null, false );
                },

which solved it for me (and refreshed the table keeping the current pagination.

dahomz avatar Jun 03 '18 11:06 dahomz