예제 #1
0
        public FluentMvcGrid <T> AddColumn(string headerText, Func <T, object> expression)
        {
            var newColumn = new FluentMvcGridColumn <T>();

            newColumn.HeaderText(headerText).Format(expression);
            _columns.Add(newColumn);
            return(this);
        }
예제 #2
0
        public FluentMvcGrid <T> AddColumn(string headerText, Func <T, object> expression, Func <T, object> @class, string sortBy)
        {
            var newColumn = new FluentMvcGridColumn <T>();

            newColumn.HeaderText(headerText).Format(expression).Class(@class).Sortable(true).SortBy(sortBy);
            _columns.Add(newColumn);
            return(this);
        }
예제 #3
0
        public FluentMvcGrid <T> AddColumn(Action <FluentMvcGridColumn <T> > column)
        {
            var newColumn = new FluentMvcGridColumn <T>();

            _columns.Add(newColumn);
            column(newColumn);
            return(this);
        }