StateRestore: ajax function is ignored when alternative UI is set

StateRestore: ajax function is ignored when alternative UI is set

bagelsesamebagelsesame Posts: 5Questions: 0Answers: 0

Hi,

I noticed that StateRestore ignores the ajax function when initializing with an alternative UI ('all-in-one' drop-down menu) as described on this example page: https://datatables.net/extensions/staterestore/examples/initialisation/alternative.html

Link to test case: https://jsfiddle.net/bagelsesame/5ont1xad/4/

The ajax function is ignored unless the following lines are removed:
buttons: [
'createState',
'removeAllStates'
],

Best regards

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin

    Hi,

    Thanks for letting me know about this. I've added a fix for this and it will be in the nightly build in the next 10 minutes.

    There is still a little bit of disconnect in the code that I'm not happy with - overlapping localStorage when using that alert, but I'll come back to look at that. Hopefully this still get you going.

    Allan

  • bagelsesamebagelsesame Posts: 5Questions: 0Answers: 0
    edited June 2022

    Thank you for your answer and for your awesome product

Sign In or Register to comment.