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

Change RadGridView Row Style

7 Answers 199 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Haythem
Top achievements
Rank 1
Haythem asked on 11 Jun 2013, 11:46 AM
Please can anyone send me a sample that's helps me to change RadGrid view row colors : On Mouse Over and selected ...etc
I want to change the orange and white colors when a cell or a row or a header is selected.

Waiting forward for your answer.
KAROUI Haythem

7 Answers, 1 is accepted

Sort by
0
Haythem
Top achievements
Rank 1
answered on 11 Jun 2013, 11:53 AM
I wanted to change title to RadGridView Selected row and header style.
i want to customize the style of selected row and header exactly ... i want to change the color from orange to blue for example
and i want to change the elements put in red rectangle in the image attached.
please i need your help :(.
and the selected colors of the items below
0
Yoan
Telerik team
answered on 12 Jun 2013, 08:16 AM
Hello,

You can check this help article, which shows you how to override the default RadGridView styles. As for the indent cells, I would suggest you to check this help article.

I hope this helps.

Regards,
Yoan
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Haythem
Top achievements
Rank 1
answered on 12 Jun 2013, 12:01 PM
Thank you for your reply but i just want to know now how to change color inside the red rectangle on the joined photo.

Waiting forward for your answer.
KAROUI Haythem
0
Yoan
Telerik team
answered on 12 Jun 2013, 12:56 PM
Hello,

You can do this very easily with a simple style targeting the FrozenColumnsSplitter. Please check the following code snippet for a reference:

<Style TargetType="telerik:FrozenColumnsSplitter">
<Setter Property="Background" Value="Red"/>
</Style>


Regards,
Yoan
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Haythem
Top achievements
Rank 1
answered on 12 Jun 2013, 01:52 PM
Thank you for your quick response but in my gridview i have only the attribute FrozenColumnsSplitterVisibility.
i don't have FrozenColumnsSplitterStyle to refer it ... 
what can i do ?
0
Yoan
Telerik team
answered on 12 Jun 2013, 03:19 PM
Hello,

You can define this style in RadGridView's Resources:

<telerik:RadGridView Grid.Row="0"
                             Name="clubsGrid"
                             ItemsSource="{Binding Clubs}"
                             AutoGenerateColumns="False"
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
                             Margin="5">
            <telerik:RadGridView.Resources>
                <Style TargetType="telerik:FrozenColumnsSplitter">
                    <Setter Property="Background" Value="Red"/>
                </Style>
            </telerik:RadGridView.Resources>
            <telerik:RadGridView.Columns>
                <telerik:GridViewToggleRowDetailsColumn/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Established}"
                                            Header="Est."
                                            DataFormatString="{}{0:yyyy}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding StadiumCapacity}"
                                            Header="Stadium"
                                            DataFormatString="{}{0:N0}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>


Regards,
Yoan
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Haythem
Top achievements
Rank 1
answered on 12 Jun 2013, 03:46 PM
Thank you very much .. you are awsome :)
Best regards
KAROUI Haythem
Tags
GridView
Asked by
Haythem
Top achievements
Rank 1
Answers by
Haythem
Top achievements
Rank 1
Yoan
Telerik team
Share this question
or