示例#1
0
        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));
        }
示例#2
0
        public ActionResult Grid()
        {
            var grid = new EmplAjaxPagingGrid(_Service.GetAllView(), 1, false);

            return(PartialView("_EmplGrid", grid));
        }