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; } }
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 _FilterOn(TTarget target, ColDef colDef) { _target = target; _colDef = colDef; }
public abstract void ApplyTo(ColDef colDef, System.Reflection.PropertyInfo pi);
public override void ApplyTo(ColDef colDef, PropertyInfo pi) { // This attribute does not affect rendering }