Hi,
I have created a grid that needs to show totals and highlight the totals if they exceed a certain amount. Like a time sheet going over 40 hours for a week or 8 hours in a single day.
I have not been able to find a way to capture the CellElement to modify the GridViewSummaryRow cells.
I have tried a few different ways such as the following.
private void rg_CellFormatting(object sender, CellFormattingEventArgs e)
{
if (e.CellElement is Telerik.WinControls.UI.GridSummaryCellElement)
{
e.CellElement.DrawFill = true;
e.CellElement.NumberOfColors = 1;
e.CellElement.BackColor = Color.Crimson;
e.CellElement.Font = new Font("Verdana", 10);
}
}
I never see a GridSummaryCellElement come up during the formatting. I was wondering if I am just going about it wrong or maybe its the order in which I am constructing my grid?
Quick view of my load:
BuildGrid();
PinColumns();
BindGrid();
CreateSummaryRow();
I can provide more detail if needed.
Any thoughts?
Thanks,
Chris
I have created a grid that needs to show totals and highlight the totals if they exceed a certain amount. Like a time sheet going over 40 hours for a week or 8 hours in a single day.
I have not been able to find a way to capture the CellElement to modify the GridViewSummaryRow cells.
I have tried a few different ways such as the following.
private void rg_CellFormatting(object sender, CellFormattingEventArgs e)
{
if (e.CellElement is Telerik.WinControls.UI.GridSummaryCellElement)
{
e.CellElement.DrawFill = true;
e.CellElement.NumberOfColors = 1;
e.CellElement.BackColor = Color.Crimson;
e.CellElement.Font = new Font("Verdana", 10);
}
}
I never see a GridSummaryCellElement come up during the formatting. I was wondering if I am just going about it wrong or maybe its the order in which I am constructing my grid?
Quick view of my load:
BuildGrid();
PinColumns();
BindGrid();
CreateSummaryRow();
I can provide more detail if needed.
Any thoughts?
Thanks,
Chris