Beispiel #1
0
        /// <summary>
        /// Defines a add button.
        /// </summary>
        /// <returns></returns>
        public ImageButtonBuilder Add()
        {
            var button = ImageButtonBuilder.GridAdd();

            Column.HeaderButtonSet.Add(button);

            return(button);
        }
Beispiel #2
0
        public GridCrudCommandsColumnBuilder <T> All()
        {
            templateColumnBuilder.HeaderTemplate(ImageButtonBuilder.GridAdd().ToHtmlString());
            templateColumnBuilder.ClientTemplate(ImageButtonSetBuilder.NewSet()
                                                 .Add(ImageButtonBuilder.GridEdit())
                                                 .Add(ImageButtonBuilder.GridDelete())
                                                 .ToHtmlString());
            rowCommandType = RowCommandType.All;

            return(this);
        }
Beispiel #3
0
        public GridCrudCommandsColumnBuilder <T> Add()
        {
            templateColumnBuilder.HeaderTemplate(ImageButtonBuilder.GridAdd().ToHtmlString());

            return(this);
        }