This is a migrated thread and some comments may be shown as answers.

Merge RowStyleSelector, with GridViewStyle

1 Answer 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 13 Oct 2011, 12:26 PM
I have a grid and I need to have this style:

<Style x:Key="ShowroomLogGridViewRowStyle" TargetType="telerik:GridViewRow">
            <Setter Property="Template" Value="{StaticResource GridViewRowTemplate}"/>
</Style>

merge with this:
<View:ColorStyle x:Key="colorStyle">
          <View:ColorStyle.YellowStyle>
              <Style TargetType="telerik:GridViewRow">
                  <Setter Property="Background" Value="Yellow"/>
              </Style>
          </View:ColorStyle.YellowStyle>
          <View:ColorStyle.TransparentStyle>
              <Style TargetType="telerik:GridViewRow">
                  <Setter Property="Background" Value="Transparent" />
              </Style>
          </View:ColorStyle.TransparentStyle>
          <View:ColorStyle.LightBlueStyle>
              <Style TargetType="telerik:GridViewRow">
                  <Setter Property="Background" Value="#648CB2FC" />
              </Style>
          </View:ColorStyle.LightBlueStyle>
          <View:ColorStyle.LightGreenStyle>
              <Style TargetType="telerik:GridViewRow">
                  <Setter Property="Background" Value="#6470C950" />
              </Style>
          </View:ColorStyle.LightGreenStyle>
      </View:ColorStyle>

Could you give me some hints to deal with this?

Best regards,

John

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 13 Oct 2011, 12:38 PM
Hi John,

I'm not sure I understand your question. You can return this style using the grid RowStyleSelector.

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or