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

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