示例#1
0
        public JsonResult GetOrdersGridRows(int page)
        {
            var repository = new OrdersRepository();
            var grid = new OrdersAjaxPagingGrid(repository.GetAll(), page, true);

            return Json(new
            {
                Html = RenderPartialViewToString("_OrdersGrid", grid),
                HasItems = grid.DisplayingItemsCount >= grid.Pager.PageSize
            }, JsonRequestBehavior.AllowGet);
        }
示例#2
0
        public JsonResult GetOrdersGridRows(int page)
        {
            var repository = new OrdersRepository();
            var grid       = new OrdersAjaxPagingGrid(repository.GetAll(), page, true);

            return(Json(new
            {
                Html = RenderPartialViewToString("_OrdersGrid", grid),
                HasItems = grid.DisplayingItemsCount >= grid.Pager.PageSize
            }, JsonRequestBehavior.AllowGet));
        }