public static GridButtonsColumnBuilder Buttons <TModel>(this GridColumnFactory <TModel> factory, Action <GridButtonsColumnFactory <TModel> > buttonAction, FilterRow filterRow = null) where TModel : class { if (filterRow != null) { filterRow.AddCell(new ButtonFilterCell()); } GridButtonsColumn <TModel> column = new GridButtonsColumn <TModel>(factory.Container); buttonAction(new GridButtonsColumnFactory <TModel>(column)); factory.Container.Columns.Add(column); return(new GridButtonsColumnBuilder(column)); }
public GridButtonsColumnFactory(GridButtonsColumn <T> column) { Column = column; }