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.css
and it contains the default CSS styling for the tablesThe second is
jquery.dataTables.js
and it contains the JavaScript logic for rendering theDataTables
plugin 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.json
file. If you do not see thebower.json
file inside the Visual Studio Solution Explorer, click on the Show All Files button...