public JsonResult GetDepartmentList(int page) { var grid = new DepartmentAjaxPagingGrid(_Service.GetAllView(), page, true); return(Json(new { Html = RenderPartialViewToString("_DepartmentGrid", grid), HasItems = grid.DisplayingItemsCount >= grid.Pager.PageSize }, JsonRequestBehavior.AllowGet)); }
public ActionResult Grid() { var grid = new DepartmentAjaxPagingGrid(_Service.GetAllView(), 1, false); return(PartialView("_DepartmentGrid", grid)); }