Is there some sort of data stored in state about which plugins are being used?

Is there some sort of data stored in state about which plugins are being used?

sesplersespler Posts: 22Questions: 10Answers: 0
edited August 21 in Free community support

Test case: https://live.datatables.net/jafecete/1/edit

Above is a test case of what I'm essentially trying to accomplish. It works fine in the test case, and works fine in our system as a minimal test case as well.

The problem arrives when I add some custom functionality that we built around state save/load. We are essentially saving datatables states to that other users in the system can view the table configured the way someone else setup. In this function we do some checks to make sure that the column count matches for things like colReorder which complains if there is a mismatch in state vs table.

Anyway the issue I'm seeing is that when switching from responsive view to scrollx view by changing the screen size and reloading, it doesn't change the configuration, just keeps it as whatever configuration (responsive or scrollx) it was before.

The test case and our system use colReorder, fixedColumns, and responsive.

Is there something in datatables state that I am perhaps overriding that would cause this to happen?

Answers

  • allanallan Posts: 64,940Questions: 1Answers: 10,755 Site admin

    I can't immediately think of something that would cause a problem when switching between responsive and scrolling views with a table reload. Are you able to link to a test case that demonstrates the issue?

    Allan

Sign In or Register to comment.