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