To add the basic functionality for the DataTables plugin, the following two files are required:
The first is
jquery.dataTables.css
and it contains the default CSS styling for the tablesThe second is
jquery.dataTables.js
and it contains the JavaScript logic for rendering the DataTables plugin and adding the necessary functionality
Both these files are available at the DataTables CDN at the following links:
//cdn.datatables.net/1.10.0/css/jquery.dataTables.css
//cdn.datatables.net/1.10.0/js/jquery.dataTables.js
You can also add all the required CSS and JavaScript files needed for jQuery DataTables as well as all the CSS and JavaScript files for the extensions using NuGet. Complete the following steps to add jQuery DataTables when using NuGet:
In Visual Studio, open the Package Manager Console window by navigating to Tools | Library Package Manager | Package Manager Console.
Inside the Package Manager Console window...