Getting Uncaught Cannot extend unknown button type: savedStates jQuery-3.7.1. error

Getting Uncaught Cannot extend unknown button type: savedStates jQuery-3.7.1. error

PaulVickeryPaulVickery Posts: 43Questions: 7Answers: 0

Hi All

I have just upgraded to the latest libraries and I am getting the following error for savedStates

Uncaught Cannot extend unknown button type: savedStates jQuery-3.7.1.

used as below:

                        {
                            extend: 'savedStates',
                            config: {
                                ajax: "../php/stateRestoreSave.php"
                            }
                        }

However If you go to the following example https://datatables.net/examples/staterestore/initialisation/ajax.html you will note that it is not possible to create a state either and it throws the error message:

Uncaught TypeError: Cannot read properties of undefined (reading 'stateRestore') dataTables.stateRestore.min.js

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 65,870Questions: 1Answers: 10,958 Site admin
    Answer ✓

    Hi Paul,

    StateRestore is one of two extensions that haven't yet been ported for DataTables 3 (SearchPanes is the other).

    I'll hoping to have news on the StateRestore port soon.

    Allan

  • PaulVickeryPaulVickery Posts: 43Questions: 7Answers: 0

    Thank you Alan

Sign In or Register to comment.