The Save Table State setting in DataTables
Save Table State makes a DataTables View remember how each visitor left it: the sort order, the page, and the number of entries shown. When the visitor comes back to the table by reloading the page, with the browser’s Back button, or with Cancel on the Edit Entry screen, the table opens the way they left it.
This holds for search results too. A visitor who searches with the Search Bar or picks a Live Filters option, moves to page 2 and reloads sees page 2 of the same results. Opening the page without a search shows the full list the way the visitor last left it, and running the same search again after that starts on page 1.
The table remembers this only in the browser tab where the visitor used it, so the same View opened in a new tab opens in its own order.
A search typed in the table’s own search box is cleared when the page reloads, and so is any value chosen in the field filters. A search made with the Search Bar is part of the page’s address, so it stays after a reload whether this setting is on or off.
Turning it off #
The setting is on for new Views. To turn it off:
- Edit the View and click the DataTables tab in the Settings box.
- Under Browser Cache, turn off Save Table State.
- Click Update.

With the setting off, the table opens in the View’s own order every time. My DataTables View is not sorting properly shows how to open a table once without what was remembered, and how to turn the setting off for every DataTables View.