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