SearchPanes and stateSave disables pane column show

SearchPanes and stateSave disables pane column show

xepoxepo Posts: 6Questions: 2Answers: 0
edited August 2021 in SearchPanes

Link to test case: http://live.datatables.net/foxomuxe/1/edit?html,css,js,console,output
Description of problem:

setting stateSave = true, will ignore the enabled pane colum (column being shown for filtering),

eg. with stateSave = true it will show colum 0 only, instead of showing 0 and 4 (targets: [0,4]), when stateSave = false or line is commented it works as expected showing col 0 and 4.

This question has an accepted answers - jump to answer

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    Hi @xepo,

    This is because SearchPanes is still reloading your previous state. If you change your config and want it to start from scratch you should run state.clear(). To clear the state again.

    Thanks,
    Sandy

Sign In or Register to comment.