I am trying to add a custom header for MVC3 WebGrid.
The title property only accepts a string, and any HTML is shielded.
My current view of the razor mesh is as follows:
var grid = new WebGrid(Model, canPage: true, rowsPerPage: 5); grid.Pager(WebGridPagerModes.NextPrevious); @grid.GetHtml(tableStyle: "data_table-sorter", alternatingRowStyle: "odd", columns: grid.Columns( grid.Column(header:"Select<span class=\"fi fi_gear\"></span>\"" , style: "table-select-col has-menu", canSort: false, format: @<input type="checkbox" value="@item.Id" />), grid.Column("Name", "Briefing Book Name", canSort: true, style: "dj_sortable-table-column"), grid.Column("Format", "Format", canSort: true, style: "dj_sortable-table-column") ));
How can i do this?
source share