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