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

[Solved] RadGridView RowIndicator & GridviewHeaderrow

2 Answers 232 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
st
Top achievements
Rank 1
st asked on 24 Feb 2011, 01:27 PM
Hello,

We are using your controls in Silverlight with VisualStudio 2010.

I do have some problems changing the appearance of your RadGridView.

First i tryed to change the style by setting the background.
For Headercells and Rows the background was set.
Then i tryed to change the borders also, but the changed were not taking any effect.

This is how i am setting the background :
<Style TargetType="telerikGVR:GridViewHeaderRow">
   <Setter Property="Background" Value="{StaticResource HeaderBackgroundNormal}"/>
</Style>
i tryed also

<Style TargetType="telerikGVR:GridViewHeaderRow">
   <Setter Property="Background" Value="{StaticResource HeaderBackgroundNormal}"/>
   <Setter Property="BorderThickness" Value="0"/>
   <Setter Property="BorderBrush" Value="Transparent"/>
</Style>

But still just the background ist changed.
Same for HeaderCells.

I had even more problems changing the Rowindicator
by changing the style für the TargetType "IndicatorPresenter".
But for this object not even the background was changed.

We are not using Micosoft Expression Blend and ur documentation just shows
how to adjust your controls using this programm.

I have successfully changed die GridViewHeaderCells style, because there was an example in your forum
where the default style of this object was given in an example project.
Unfortunatly i did not find anything fitting to the RowIndicator and to the GridviewHeaderrow.

I would be pleased if you paste the default style so i can copy and adjust it manually.


Greetings sts

2 Answers, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 25 Feb 2011, 08:24 AM
Hello St,

Considering the template structure of the different RadGridView's parts, you cannot change the inner border elements by defining a simple style. In this particular case you have to edit  template of the GridViewHeaderRow to achieve the desired result. The IndicatorPresenter is responsible for displaying the Indicators in GridViewRow. If you need to change one of those indicators, you have to edit the template of GridViewRow and to modify the paths contained in it or anything else you need.

You may find attached sample project that demonstrates the approaches above.


Greetings,
Vanya Pavlova
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
st
Top achievements
Rank 1
answered on 25 Feb 2011, 11:07 AM
Hi Vanya,

thanks for your fast reply.

Your sample project solved my problem perfectly.

Now i am finally able to change enough details in the appearance of my grid's.

Greetings,
sts
Tags
GridView
Asked by
st
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
st
Top achievements
Rank 1
Share this question
or