Ejemplo n.º 1
0
        public JqGridFilter(HttpRequestBase request, JqGridData <T> gridData)
        {
            Rows = int.Parse(request.Form["rows"]);
            Page = int.Parse(request.Form["page"]);

            OrderBy   = request.Form["sidx"];
            Ascending = "desc" != request.Form["sord"];


            foreach (var column in gridData.Columns)
            {
                if (column.DisplayName == OrderBy)
                {
                    order = column.Function;
                    break;
                }
            }
        }
Ejemplo n.º 2
0
 public JqGridJsonResult(JqGridData <T> data, JqGridFilter <T> filter)
 {
     this.data   = data;
     this.filter = filter;
 }