diff --git a/Mvc.JQuery.Datatables.Example/Views/Home/Index.cshtml b/Mvc.JQuery.Datatables.Example/Views/Home/Index.cshtml index 4dbf507..2fc29bf 100644 --- a/Mvc.JQuery.Datatables.Example/Views/Home/Index.cshtml +++ b/Mvc.JQuery.Datatables.Example/Views/Home/Index.cshtml @@ -63,6 +63,7 @@ can also use vm.FilterOn("Position", new { sSelector = "#custom-filter-placeholder-position" }).Select("Engineer", "Tester", "Manager") .FilterOn("Id").NumberRange(); //.FilterOn("Number").CheckBoxes(Enum.GetNames(typeof(Numbers))); + vm.StateSave = true; } @Html.Partial("DataTable", vm) diff --git a/Mvc.JQuery.Datatables.Templates/Views/Shared/DataTable.cshtml b/Mvc.JQuery.Datatables.Templates/Views/Shared/DataTable.cshtml index 2af0a01..33921dc 100644 --- a/Mvc.JQuery.Datatables.Templates/Views/Shared/DataTable.cshtml +++ b/Mvc.JQuery.Datatables.Templates/Views/Shared/DataTable.cshtml @@ -1,8 +1,6 @@ @using Mvc.JQuery.Datatables @model DataTableConfigVm -@{ - -} + @@ -28,6 +26,7 @@
+