datatables.net-staterestore 2.1.1

dotnet add package datatables.net-staterestore --version 2.1.1
                    
NuGet\Install-Package datatables.net-staterestore -Version 2.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="datatables.net-staterestore" Version="2.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="datatables.net-staterestore" Version="2.1.1" />
                    
Directory.Packages.props
<PackageReference Include="datatables.net-staterestore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add datatables.net-staterestore --version 2.1.1
                    
#r "nuget: datatables.net-staterestore, 2.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package datatables.net-staterestore@2.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=datatables.net-staterestore&version=2.1.1
                    
Install as a Cake Addin
#tool nuget:?package=datatables.net-staterestore&version=2.1.1
                    
Install as a Cake Tool

StateRestore for DataTables

StateRestore is a state management UI for DataTables. It allows users to create multiple table states which can be saved and then reloaded at any time. This is particularly useful for complex tables where specific views are common and the user might wish to toggle between states.

States can be saved locally, or for a more permanent part of your table's features, to a remote database via Ajax, which also provides the ability for users to share states.

Features

StateRestore provides the following features to enhance a DataTable:

  • Two state management interfaces to suit your needs:
    • Table based
    • Dropdown list based
  • Default state for when a table is loaded
  • First class Ajax storage
  • Optional sharing of states
  • Customisation of which table settings are saved
  • Comprehensive API
  • Full support in our server-side libraries

And more! As with all DataTables extensions it can of course have all language strings localised, has complete documentation, and has styling integration with all of the DataTables supported styling libraries (e.g. Bootstrap, Bulma, Fomantic UI and others).

Installation

The easiest way to install any extension for for DataTables, including StateRestore, is with the download builder. With the download builder, you select the styling and aspects of DataTables suite that you want, and it will generate the packages / install commands for you to use.

The download builder includes options for direct loading with script and link tags, details for using a package manager such as npm and NuGet, or a download option if you wish to have the files locally.

Basic Usage

In its most simple case, you can enable StateRestore by simply setting stateRestore: true as an option in the DataTables initialisation.

new DataTable('#example', {
	layout: {
		topStart: {
			buttons: ['stateCreate', 'statesList', 'pageLength']
		}
	},
	stateRestore: true
});

Note that you will typically use one of statesList or statesTable in the buttons array with the Buttons extension, as these define the UI that the end user will interact with. stateCreate is another common StateRestore button to use at the top level. This and the list view are used in the example above.

Documentation / Support

License

This software is released under the DataTables Plus License. To use the software a license key must be applied - see DataTables Plus.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on datatables.net-staterestore:

Package Downloads
datatables.net-staterestore-bs

This is StateRestore for DataTables with styling for [Bootstrap](https://getbootstrap.com/docs/3.3/)

datatables.net-staterestore-dt

This is StateRestore for DataTables with styling for [DataTables](https://datatables.net/)

datatables.net-staterestore-bs5

This is StateRestore for DataTables with styling for [Bootstrap5](https://getbootstrap.com/)

datatables.net-staterestore-bs4

This is StateRestore for DataTables with styling for [Bootstrap4](https://getbootstrap.com/docs/4.6/getting-started/introduction/)

datatables.net-staterestore-jqui

This is StateRestore for DataTables with styling for [jQueryUI](http://jqueryui.com/)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.1 306 9/25/2026
2.0.1 366 9/16/2026
2.0.0 370 9/11/2026
1.4.3 771 10/10/2025
1.4.2 634 9/9/2025
1.4.1 4,940 4/11/2024
1.4.0 757 2/15/2024
1.3.0 811 7/4/2023
1.2.2 840 3/10/2023
1.2.1 886 2/3/2023
1.2.0 941 11/8/2022
1.1.1 12,210 5/12/2022
1.1.0 1,074 1/12/2022
1.0.1 1,578 12/3/2021
1.0.0 2,753 11/26/2021