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

auto="false" results in "Cannot reinitialise DataTable" error #14

Open
asnow77 opened this issue Feb 12, 2018 · 1 comment
Open

auto="false" results in "Cannot reinitialise DataTable" error #14

asnow77 opened this issue Feb 12, 2018 · 1 comment

Comments

@asnow77
Copy link

asnow77 commented Feb 12, 2018

I followed the example of setting auto="false" so that I could set some "options", however the call "datatable.render(options)" results in the following alert message and the table renders without and data in it:

"DataTables warning: table id=table1 - Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3"

I'm using v2.0.1 of the plugin on grails v3.3.2. My test code is as follows:

`<exa:datatable id="table1" items="${users}" auto="false"/>

<script type="text/javascript" charset="utf-8"> $(document).ready(function() { var datatable = Exa.Datatable.getDatatable('table1'); var options = { "pageLength": 2 } datatable.render(options); }); </script>`
@asnow77
Copy link
Author

asnow77 commented Feb 12, 2018

Would be nice to pass in all DataTables "options" from the exa:datatable tag. Could this be added? :)

@asnow77 asnow77 changed the title auto="true" results in "Cannot reinitialise DataTable" error auto="false" results in "Cannot reinitialise DataTable" error Feb 12, 2018
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