datatable save state is not for the first redirect to a new page

datatable save state is not for the first redirect to a new page

sand0987sand0987 Posts: 1Questions: 1Answers: 0

datatable save state is not for the first redirect to a new page and from the second type onwards the table properties are retained.

Unable to diagnose the problem:-

$(document).ready(function(){
console.log("DOM ready fired");
$("#contestHome").addClass("salesbox-highlight");
$('#searchResultsTable').dataTable({
"bStateSave": true,
'aoColumnDefs': [{
'bSortable': true,

            'aTargets': [0] /* 1st one, start by the right */
            }],
            "order": [],
            "dom": '<"left"f><"right"l>rt<"bottom"><"left"p><"right"i><"clear">' 
        }); 

    });
This discussion has been closed.