public override void ApplyTo(ColDef colDef, System.Reflection.PropertyInfo pi) { colDef.Filter = new FilterDef(pi.GetType()); if (filterType == "none") { colDef.Filter = null; } else { if (filterType != null) colDef.Filter.type = filterType; if (options != null && options.Any()) colDef.Filter.values = options; } }
public override void ApplyTo(ColDef colDef, System.Reflection.PropertyInfo pi) { colDef.DisplayName = this.ToDisplayName() ?? colDef.Name; colDef.Sortable = this.Sortable; colDef.Visible = this.Visible; colDef.Searchable = this.Searchable; colDef.SortDirection = this.SortDirection; colDef.MRenderFunction = this.MRenderFunction; colDef.CssClass = this.CssClass; colDef.CssClassHeader = this.CssClassHeader; colDef.CustomAttributes = pi.GetCustomAttributes().ToArray(); colDef.Width = this.Width; }
public override void ApplyTo(ColDef colDef, PropertyInfo pi) { // This attribute does not affect rendering }
public abstract void ApplyTo(ColDef colDef, System.Reflection.PropertyInfo pi);
public override void ApplyTo(ColDef colDef, PropertyInfo pi) { colDef.SearchCols = colDef.SearchCols ?? new JObject(); colDef.SearchCols["sSearch"] = new DateTime(2014, 1, 1).ToString("g") + "~" + DateTimeOffset.Now.Date.AddDays(1).ToString("g"); }