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.CssClassFooter = this.CssClassFooter; colDef.CustomAttributes = pi.GetCustomAttributes().ToArray(); colDef.Width = this.Width; }
public abstract void ApplyTo(ColDef colDef, System.Reflection.PropertyInfo pi);
public override void ApplyTo(ColDef colDef, System.Reflection.PropertyInfo pi) { colDef.Filter = new FilterDef(pi.GetType()); if (filterType != null) colDef.Filter.type = filterType; if (options != null && options.Any()) colDef.Filter.values = options; }