Adding DataTables to your ASP.NET MVC project
To add the basic functionality for the DataTables plugin, the following two files are required:
The first is
jquery.dataTables.cssand it contains the default CSS styling for the tablesThe second is
jquery.dataTables.jsand it contains the JavaScript logic for rendering theDataTablesplugin and adding the necessary functionality
Both these files are available at the DataTables CDN at the following links:
Using the DataTables Bower package
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 Bower. Complete the following steps to add jQuery DataTables when using Bower:
In Visual Studio, open the
bower.jsonfile. If you do not see thebower.jsonfile inside the Visual Studio Solution Explorer, click on the Show All Files button...