Ejemplo n.º 1
0
		public JsonResult SetGridState(string gridId, GridState state, string path)
		{
			if (gridId.HasValue() && state != null && path.HasValue())
			{
				var info = new GridStateInfo { State = state, Path = path };
				TempData[gridId] = info;
			}
			return Json(new { Success = true });
		}
 public static GridModel ToGridModel(this IQueryable queryable, GridState state)
 {
     return queryable.ToGridModel(state.Page, state.Size, state.OrderBy, state.GroupBy, state.Filter);
 }