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

Styling Row Indicator

2 Answers 323 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin Hendriks
Top achievements
Rank 1
Kevin Hendriks asked on 25 Jan 2011, 02:39 PM
I made the following style

<

 

Style TargetType="{x:Type telerik:GridViewRow}">

 

 

 

<Style.Triggers>

 

 

 

<DataTrigger Binding="{Binding Marked}" Value="True">

 

 

 

<Setter Property="Background" Value="Yellow" />

 

 

 

</DataTrigger>

 

 

 

</Style.Triggers>

 

 

 

</Style>

 



This all works fine but it does not change the background color of the row Indicator how do i make this possible?

Also in my Expression Blend 3 the Edit a Copy for the rowstyle is not avalable so I have nothing to style as a base

2 Answers, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 25 Jan 2011, 05:43 PM
Hi Kevin,


Considering the template structure of GridViewRow you cannot change its indicator with a simple style.
You need to edit the template of GridViewRow to achieve the desired result as it is shown at the attached example. As far as I can understand you cannot edit the template of GridViewRow by some reason.
Can you please try the approach below and let me know what happens:

1.Find in Assets library a single GridViewRow.
2.Drag it onto the Artboard, right click on it and choose the option Edit Template -> Edit a copy.

You may use the same approach for any other GridView part.


Regards,
Vanya Pavlova
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Kevin Hendriks
Top achievements
Rank 1
answered on 26 Jan 2011, 09:55 AM
Yes this both worked thanks alot.
Tags
GridView
Asked by
Kevin Hendriks
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Kevin Hendriks
Top achievements
Rank 1
Share this question
or