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

[Solved] change row style in gridview

1 Answer 122 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.
tsvika
Top achievements
Rank 1
tsvika asked on 13 Oct 2010, 08:57 AM
hi

I've tryed this:

<

 

 

telerik:RadGridView AutoGenerateColumns="False" ShowGroupPanel="False" Grid.Row="2" ItemsSource="{Binding Paxes}" HorizontalAlignment="Stretch" SelectionMode="Extended" Height="180"

 

 

 

x:Name="_paxDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" VerticalAlignment="Stretch" Margin="0" CanUserFreezeColumns="False" IsFilteringAllowed="False">

 

 

 

 

<telerik:RadGridView.RowStyle>

 

 

 

 

<Style TargetType="GridViewRow">

 

 

 

 

<Setter Property="ItemBackground_Over" Value="Transparent"/>

 

 

 

 

</Style>

 

 

 

 

</telerik:RadGridView.RowStyle>

 

....
but the page does not recognize "GridViewRow" or "ItemBackground"

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 13 Oct 2010, 09:05 AM
Hello tsvika,

To be able to target the GridView row , you will need to prefix it with the proper namespace.
e.g. declare :
xmlns:telerik=http://schemas.telerik.com/2008/xaml/presentation

and use telerik:GridViewRow in the TargetType attribute.

About the property you are trying o set :
GridViewRow does not expose a property named ItemBackground_Over.

I guess you are trying to change the muse over background on the row ? For this you will need to edit the template of the row, changing the brush .

If you find it hard to implement , just let me know which theme you are using ( if not the default one  ) ,
and i will gladly prepare a small sample app for you with the template redefined.

Kind regards,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
tsvika
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or