Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public GridButtonsColumnFactory(GridButtonsColumn <T> column)
 {
     Column = column;
 }