Hi,
I am have done an upgrade to 2011 Q1 from the 2010 Q3 issue ,on previous issue i was setting the backgroud color of a cell and it was working fine , now on the new 2011 issue the colouring of the background (cell) has become inactive. (in this case i cannot use a converter in xaml as i need more than one parameter).
Here is a snap of my code.
private void syncGrid_CellLoaded ( object sender, Telerik.Windows.Controls.GridView.CellEventArgs e )
{
Data.
ThresholdDetail threshold;
Data.Sync row = (Data.Sync)e.Cell.ParentRow.Item;
if ( row != null )
{
switch ( e.Cell.Column.UniqueName )
{
case "MFP" :
threshold = dataContext.Thresholds
.Where ( R => R.hiId ==
"MFP")
.Where ( R => R.acqTypeName == row.ACQTYPE )
.Where ( R => R.AcqId == row.ACQID )
.FirstOrDefault ();
if ( threshold != null && row.MFP > threshold.daSteadyThrValue )
{
e.Cell.Background = (
SolidColorBrush)Application.Current.Resources["ThresholdExceedenceColor"];
}
{
e.Cell.Background =
new SolidColorBrush ( Colors.Transparent );
}
break ;
........
Xaml
......
<controls:GridView Name="syncGrid"
Grid.Row="0"
ItemsSource="{Binding Path=Sync}"
SelectedItem="{Binding Path=SelectedSync, Mode=TwoWay}"
AutoGenerateColumns="False"
IsReadOnly="True"
CellLoaded="syncGrid_CellLoaded">
.......
The event is fired when the grid is triggerd/loaded but this has no effect on the grid's cell , (2010 Q3 was fine)
Thank you for your help
Kind Regards
Giuseppe