StateSave without Select Checkboxes

StateSave without Select Checkboxes

JLegaultJLegault Posts: 31Questions: 6Answers: 2
edited May 2021 in DataTables 1.10

Link to test case: http://live.datatables.net/wufifoji/1/edit
Debugger code (debug.datatables.net): N/A
Error messages shown: N/A
Description of problem: When I utilize the stateSave option with a table that has checkboxes for selection, the state of the check/uncheck all button is stored, even when using the delete keyword within the saveStateParams. Is this something that will need to be done in some special way because it uses the checkbox plug-in or am I just using the delete keyword wrong?

        stateSaveParams: function (settings, data) {
            delete data.checkboxes;
        },

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    I'm not entirely sure what's happening there, but the solution/workaround is to remove the checkboxes on the load, instead of on the save, see updated example here: http://live.datatables.net/wufifoji/2/edit

    Colin

  • JLegaultJLegault Posts: 31Questions: 6Answers: 2

    Awesome, I'll just use that!

This discussion has been closed.