DataTables 1.10 API draw() does not word when serverSide is true

DataTables 1.10 API draw() does not word when serverSide is true

JisaKunJisaKun Posts: 3Questions: 3Answers: 0

Here's my DataTables

this.dataTable = $("#xxx").dataTable({
            pageLength: 10,
            processing: true,
            serverSide: false,
            ordering: true,
            searching: false,
            autoWidth: false,
            destroy: true,
            pagingType: "input",
            dom: "tr<'row-fluid'<'span6'i><'span6'p>>",
            ajax: {
                url: xxxxx,
                type: "post",
                data: function () {
                    return that.getQueryParams();
                }
            },
            columns: [...]
        });
    }

I close the server-side processing but get data from server because I want it paging and sorting in browser,and It words well . But when I use draw()API to redraw the table ,it doesn't work.

this.dataTable.api().draw(false);

The DT version is 1.10 .

How could I redraw the table in client-side processing ?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,791Questions: 1Answers: 10,512 Site admin
    Answer ✓

    Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.

    Information on how to create a test page, if you can't provide a link to your own page can be found here.

    Thanks,
    Allan

This discussion has been closed.