Hi, I am using the following datatemplate to give different background color to the GroupHeaderRow
The .GroupHeaderColorResourceValueConverter will take the Group.Items as the input parameter and use certain property of the items to return different background color.
However, when the property of the item changes, the GroupRowBackground color is not changed. Is there a way to make the GroupViewModel to fire an event so the GroupHeaderRow can get the noticiation from it's ViewModel to refelect the changes?
I tried the approach in the following link but it does not seem to work for the background color.
http://blogs.telerik.com/vladimirenchev/posts/10-10-04/fast-real-time-data-update-for-your-silverlight-and-wpf-applications.aspx
Thanks
<
telerik:RadGridView.GroupHeaderTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
CheckBox
localBehavior:CheckBoxBehavior.IsEnabled
=
"True"
IsThreeState
=
"True"
Margin
=
"0 0 3 0"
/>
<
TextBlock
Text
=
"{Binding Group.Key}"
Background
=
"{Binding Path=Group.Items, Converter={StaticResource GroupHeaderColorResourceValueConverter}}"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadGridView.GroupHeaderTemplate
>
The .GroupHeaderColorResourceValueConverter will take the Group.Items as the input parameter and use certain property of the items to return different background color.
However, when the property of the item changes, the GroupRowBackground color is not changed. Is there a way to make the GroupViewModel to fire an event so the GroupHeaderRow can get the noticiation from it's ViewModel to refelect the changes?
I tried the approach in the following link but it does not seem to work for the background color.
http://blogs.telerik.com/vladimirenchev/posts/10-10-04/fast-real-time-data-update-for-your-silverlight-and-wpf-applications.aspx
Thanks