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

Rowstyle of a grouped Row

3 Answers 73 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.
Roman Wack
Top achievements
Rank 1
Roman Wack asked on 16 Feb 2011, 11:29 AM
Hi,
can anybody tell me, how do change the marked Border in my attachment? It isn't affected by RowStyle, AlternateRowStyle and GroupRowStyle

Thank you!

3 Answers, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 16 Feb 2011, 01:00 PM
Hi Roman,

 
This part is called GridViewIndentCell and you can change its background by creating a simple style in this way:

<UserControl
    x:Class="SilverlightApplication39.MainPage"
    Width="640" Height="480">
<UserControl.Resources>
    <Style TargetType="telerik:GridViewIndentCell">
        <Setter Property="Background" Value="Red"/>
        <Setter Property="BorderBrush" Value="Blue"/>
        </Style>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource SampleDataSource}}">
        <telerik:RadGridView Margin="48,24,64,56" ItemsSource="{Binding Collection}"/>
    </Grid>
</UserControl>

If this style does not meet your personal requirements, you need to edit its template and change it in the way you need. In RadGridView there are four elements which represent indentation of their parent elements:
 
GridViewIndentCell - represents the Indent of a GridViewRow
GridViewHeaderIndentCell - represents the indent of GridViewHeaderRow
GridViewGroupFooterIndentCell - represents the indent of GridViewGroupFooterRow
GridViewFooterIndentCell - represents the indent of the GridViewFooterRow


Within the templates of GridViewRow, GridViewHeaderRow, GridViewGroupFooterRow and GridViewFooterRow they are represented by the following part, which is called PART_IndentPresenter.
You can read more about this in our online documentation, please follow this link.

If you need any further assistance, please let me know.


Best wishes,
Vanya Pavlova
the Telerik team
0
Roman Wack
Top achievements
Rank 1
answered on 16 Feb 2011, 01:54 PM
Thank you very much!
0
atran
Top achievements
Rank 1
answered on 31 May 2012, 05:32 PM
Roman,
   How did you get your grouped row details to align with columns?  Please advise
Tags
GridView
Asked by
Roman Wack
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Roman Wack
Top achievements
Rank 1
atran
Top achievements
Rank 1
Share this question
or