1.7.3.DataTable plug-in using AJAX source
1.Open package manager console and type:
install-package jquery.datatables -version:1.10.112.Modify BundleConfig.cs
bundles.Add(new ScriptBundle("~/bundles/lib").Include( "~/Scripts/jquery-{version}.js", "~/Scripts/bootstrap.js", "~/Scripts/bootbox.js", "~/Scripts/respond.js", "~/Scripts/DataTables/jquery.datatables.js", "~/Scripts/DataTables/datatables.bootstrap.js" )); bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/datatables/css/datatable.bootstrap.css", "~/Content/site.css"));3.Modify _layout.cshtml
@Scripts.Render("~/bundles/lib")4.Modify Controllers/CustomersController.cs
public ActionResult Index() { return View(); }5.Modify Customers/index.cshtml
Last updated
Was this helpful?