or
How can I override the default mouse over backcolor (orange color) by code?
Thanks.
@{
var headerHtmlAttributes = new { style = "font-weight:bold" };
Html.Telerik().Grid<
WorkflowDashboardModel>()
.HtmlAttributes(
new { style = "text-align:center" })
.Name(
"WorkFlowDashBoardExp")
.Columns(columns =>
{
columns.Bound(d => d.SourceSystem)
.HeaderHtmlAttributes(headerHtmlAttributes);
columns.Bound(d => d.NewException)
.HeaderHtmlAttributes(headerHtmlAttributes);
}
i want to give a header column for the column headers as top one.
how can i do? please help.
private void grid_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e){ if (e.Column.Name == "Days") { MyObject obj = (MyObject)e.Row.DataBoundItem; if (obj != null) { TimeSpan span = DateTime.Now.Date - obj.SomeDate.Date; e.CellElement.Value = span.Days; } }}POSSGridView.ClearSelection(); POSSGridView.CurrentRow = null;foreach (GridViewRowInfo rowInfo in POSSGridView.Rows) { if (rowInfo.IsSelected)