Hi,
I have a situation where I want to apply the conditional formatting example.
I have 52 cells in a row that represent a week number in a year.
This is represented in my business object as follow: Week1.days, Week2.days, Week3.days, etc
I don't know how to set the Binding CellFgBinding = new Binding("Week1.days");
In the RowLoaded event, I think I also must loop all the cells in the row, to get the relevant week, something like this:
I have a situation where I want to apply the conditional formatting example.
I have 52 cells in a row that represent a week number in a year.
This is represented in my business object as follow: Week1.days, Week2.days, Week3.days, etc
I don't know how to set the Binding CellFgBinding = new Binding("Week1.days");
In the RowLoaded event, I think I also must loop all the cells in the row, to get the relevant week, something like this:
private
void RadGridView_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
{
if (e.Row is GridViewRow)
{
capacityCheckSummary CCS = (capacityCheckSummary)e.Row.DataContext;
if (CCS.summary == "D Capacity %")
{
foreach (GridViewCell C in e.Row.Cells)
{
Binding CellFgBinding = new Binding("I don't know the binding");
CellFgBinding.Converter =
new percentageConverter();
e.Row.Cells.Last().SetBinding(
GridViewCellBase.BackgroundProperty, CellFgBinding);
}
}
}
Is there a way to avoid the Binding and get the current Cell.Content and pas it to the converter ?