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); }
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); }
public FluentMvcGrid <T> AddColumn(Action <FluentMvcGridColumn <T> > column) { var newColumn = new FluentMvcGridColumn <T>(); _columns.Add(newColumn); column(newColumn); return(this); }