RadGridView grouped row style

4 posts, 0 answers
  1. Nikolas
    Nikolas avatar
    4 posts
    Member since:
    Apr 2012

    Posted 08 Jul 2013 Link to this post

    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
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 08 Jul 2013 Link to this post

    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 >>
  3. Nikolas
    Nikolas avatar
    4 posts
    Member since:
    Apr 2012

    Posted 08 Jul 2013 Link to this post

    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>
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 10 Jul 2013 Link to this post

    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 >>
Back to Top