0

Is possible to save and load the states of Data tables (i.e ColReorder, ColVis plug-ins) to/from database? I had tried with these, but i am not getting still. Below is my code to load the states from db. I am getting the response as json object while loading the page. But its not taking changes as specified states from my db.

var oTable = $('#myTable').dataTable({
    "sPaginationType": "full_numbers",
    "bProcessing": true,
    "bStateSave": true,
    "fnStateLoad": function (oSettings, oData) {
        var o;
        $.ajax({
            "url": "getStatus.do",
            "async": false,
            "dataType": "json",
            "success": function (json) {
                o = json;
            }
        });
        return o;
    },
});

Please help me out if any one has implemented the same. Thanks in advance.

4

1 回答 1

0

尝试将 Data Manager (CRUD) 附加插件与 Datatable 一起使用。 是它的链接。

于 2013-04-02T07:45:01.613 回答