You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Would be nice to pass in all DataTables "options" from the exa:datatable tag. Could this be added? :)
asnow77
changed the title
auto="true" results in "Cannot reinitialise DataTable" error
auto="false" results in "Cannot reinitialise DataTable" error
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>`The text was updated successfully, but these errors were encountered: