For the first time search is done the stateSave is not working

For the first time search is done the stateSave is not working

Sunil KumarSunil Kumar Posts: 17Questions: 11Answers: 0
edited January 2020 in Free community support

For the first time search is done the stateSave is not working ,But from the second time onwards stateSave is working properly.What may be the issue?

var v2=$("#dataEntryFormTable").dataTable();
            v2.fnDestroy();
            dataEntryFormTable = $("#dataEntryFormTable")
                    .dataTable(
                            {
                                "bProcessing" : false,
                                "bServerSide" : false,
                                "sAjaxSource" : "./dataEntryFormList.do?teamId="
                                        + teamId,
                                "bJQueryUI" : false,
                                "iDisplayLength" : 100,
                                "bStateSave" : true,

Answers

  • Sunil KumarSunil Kumar Posts: 17Questions: 11Answers: 0

    the state of the table is not saving for the first search operation ,but from second time search operation is done the state of the datatable is getting saved.

  • sandysandy Posts: 913Questions: 0Answers: 236

    Thanks for your question. As noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

This discussion has been closed.