private static IGridColumn <T> Filterable <T>(this IGridColumn <T> column, bool isColumnFilterable, string filterName) where T : class
 {
     return(!isColumnFilterable
                         ? column
                         : column.HeaderAttributes(
                new Dictionary <string, object> {
         { "data-filter", "true" },
         { "data-filter-name", filterName }
     }));
 }
Esempio n. 2
0
 /// <summary>
 /// Defines additional attributes for the column heading.
 /// </summary>
 /// <returns></returns>
 public static IGridColumn <T> HeaderAttributes <T>(this IGridColumn <T> column, params Func <object, object>[] hash)
 {
     return(column.HeaderAttributes(new Hash(hash)));
 }