Skip to content

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

@asnow77

Description

@asnow77

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>`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions