Guest User

Untitled

a guest
Feb 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. .Read(read => read.Action("GetRecords", "SoftwareSecurity", new { showAll = false }))
  2.  
  3. public ActionResult GetRecords([DataSourceRequest] DataSourceRequest request, bool showAll = false)
  4. {
  5. int total = 0;
  6. string filter = Request.Form["filter"];
  7. string sort = Request.Form["sort"];
  8. int pageSize = Convert.ToInt32(Request.Form["pageSize"]);
  9. int pageNum = Convert.ToInt32(Request.Form["page"]);
  10.  
  11. [rest of code not needed for here.....] (returns json)
  12.  
  13. }
  14.  
  15. function showAll() {
  16. var grid = $("#userAccessGrid").data("kendoGrid");
  17. $filter = new Array();
  18. $filter.push({ field: "CustID", operator: "gt", value: "0" });
  19. grid.dataSource.filter($filter);
  20. }
Add Comment
Please, Sign In to add comment