Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh Table Data After Multiple Select #30

Open
dahomz opened this issue Jun 3, 2018 · 0 comments
Open

Refresh Table Data After Multiple Select #30

dahomz opened this issue Jun 3, 2018 · 0 comments

Comments

@dahomz
Copy link

dahomz commented Jun 3, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant