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

RadGridView grouped row style

3 Answers 161 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nikolas
Top achievements
Rank 1
Nikolas asked on 08 Jul 2013, 10:02 AM
Hello Telerik team

I have managed to style my rad grid view in WPF accordingly , however when grouping by a column the expanded row has an empty space on the far left which doesn't seem to be a part of any style (see attached file for mentioned left space and the resulting ugly contrast of colors). Can you  please let me know where is this space defined (template ?) and how can I style it ?

Thanks in advance

Kind Regards


Windows 7
WPF dev in .NET 4
Telerik Version 2012.1.402

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 08 Jul 2013, 10:25 AM
Hello,

This visual element is GridViewIndentCell. I can suggest you to also check this forum thread.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Nikolas
Top achievements
Rank 1
answered on 08 Jul 2013, 01:22 PM
Hello

Thanks for your answer. I modified GridViewIndentCell to display black , however I am still seeing the default white color.

   <Style x:Key="RadGridViewIndentCellStyle"
           TargetType="{x:Type telerik:GridViewIndentCell}">
        <Setter Property="Background" Value="Black" />
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="BorderThickness" Value="0"/>
    
        <Setter Property="VerticalContentAlignment" Value="Stretch" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        <Setter Property="Padding" Value="0" />
        
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type telerik:GridViewIndentCell}">
                    <Border BorderBrush="{TemplateBinding BorderBrush}"
                            Background="{TemplateBinding Background}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            Padding="{TemplateBinding Padding}"
                            BorderThickness="{TemplateBinding BorderThickness}" Width="25" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
</Style>
0
Dimitrina
Telerik team
answered on 10 Jul 2013, 08:15 AM
Hello,

Would you please remove the x:Key of the Style? This style can only be applied implicitly.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Nikolas
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Nikolas
Top achievements
Rank 1
Share this question
or