Reset Columns button does not work with stateSave=true

Reset Columns button does not work with stateSave=true

JacobCarrellJacobCarrell Posts: 1Questions: 1Answers: 0

I have a datatable that's using data attributes to set most the properties. I've set data-state-save="true" and data-state-duration="0". However once I've changed the columns the Column Reset Button provided by I'm using the default button, here's my whole DOM field:
data-dom="<'row justify-content-center align-items-center'<'col'Bl><'col'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>"

How do I get the button to reset the columns set in the defaults specified in the DOM/data-column-defs?

Answers

  • allanallan Posts: 63,210Questions: 1Answers: 10,415 Site admin

    I’m afraid I don’t actually quite understand the question. Is it that the reset button doesn’t restore the column visibility to its original setup after you’ve loaded in a state? Can you link to a page showing the issue as noted in the forum rules please?

    Thanks,
    Allan

This discussion has been closed.