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

Column groups and Office 2013 theme

6 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 18 Jun 2014, 07:45 AM
Hello,
with the Office 2013 theme the column headers are in uppercase, but not the column group headers.
That doesn't look very pretty.
Patrick

6 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 18 Jun 2014, 08:08 AM
Hello Patrick,



Thank you for contacting us. Following the design guideline for Office2013 theme, all column headers, column group headers and group panel cells should be uppercase. 

Could you verify whether we are talking about the same thing? 


Regards,
Vanya Pavlova
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 18 Jun 2014, 08:16 AM
Hello Vanya,
I think that we are talking about the same thing.
The Telerik GridView automatically converts column headers to uppercase, but not column group headers, as you can see in the attached scrren shot.
Patrick
0
Vanya Pavlova
Telerik team
answered on 18 Jun 2014, 08:58 AM
Hi Patrick,


Thank you for getting back to us.
As it turns out, we guess that you might have applied some custom header and alignments to common column groups.

Would it be possible to try to modify the attached project, so that we can replicate the same by our side?

I look forward to hearing from you. 


Regards,
Vanya Pavlova
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 20 Jun 2014, 08:32 AM
Hi Vanya,
you're right: there was a template in the column group.
I will look at a way to make it work correctly, even when changing the theme.
Thanks.
Patrick
nassar
Top achievements
Rank 1
commented on 03 Oct 2022, 01:54 PM

what was the correction you maid.

I still have the same Issue, Headers still UppderCase

0
Accepted
Vanya Pavlova
Telerik team
answered on 20 Jun 2014, 10:08 AM
Hello Patrick,


If you encounter any problems do not hesitate to contact us. 

Regards,
Vanya Pavlova
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
nassar
Top achievements
Rank 1
commented on 03 Oct 2022, 01:54 PM

what was the correction you maid.

I still have the same Issue, Headers still UppderCase

Patrick
Top achievements
Rank 2
Iron
Iron
Iron
commented on 03 Oct 2022, 02:01 PM

Hello Nassar,

The correction I've made is to convert the group headers to upper case, so they look correct for the theme.
You want to to the opposite: headers and group headers in lowercase.
Sorry, but I don't have a ready-to-use solution for this. Perhaps editing the template...

Best regards

nassar
Top achievements
Rank 1
commented on 03 Oct 2022, 02:30 PM

Thank you anyway for your repley Patrick :) , in fact :

- i don't want to force the lowercase,

- I don't want the default Office2013 Template to use UpperCase in all groupedColumns :(

I just want them to be in camlCase as they are specified, like : Name, LastName

0
Vicky
Telerik team
answered on 04 Oct 2022, 06:29 AM

Hi Nassar,

If you need the column groups to display as they are specified, you need to override the default ControlTemplate like the following:

<Style TargetType="telerik:CommonColumnHeader" BasedOn="{StaticResource CommonColumnHeaderStyle}">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="telerik:CommonColumnHeader">
                <Grid x:Name="PART_HeaderCellGrid" Background="Transparent">
                    <Border x:Name="GridViewHeaderCell"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Margin="-1 0 1 0"/>
                    <ContentPresenter x:Name="ContentPresenter"
                                      Content="{TemplateBinding Content}"
                                      ContentTemplate="{TemplateBinding ContentTemplate}" 
                                      Margin="{TemplateBinding Padding}"
                                      VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                      HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
                </Grid>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

I marked the key line with yellow - originally, there was a converter that is responsible for the uppercase content.
Please, keep in mind that the BasedOn attribute is needed only if the theme is set using the implicit styling mechanism (NoXaml).

Best Regards,
Vicky
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
GridView
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Vanya Pavlova
Telerik team
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Vicky
Telerik team
Share this question
or