This is a migrated thread and some comments may be shown as answers.
Header text align
1 Answer 74 Views
This is a migrated thread and some comments may be shown as answers.
Andriy
Top achievements
Rank 1
Andriy asked on 05 Sep 2019, 12:44 PM
Hello
I need to display prices and quantities in columns and it's no problem for data. Templates is very usefull thing.
But for Price header I need to place label in center. How can I use it?
Thank you.

1 Answer, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 05 Sep 2019, 01:40 PM

Hello Andriy,

At the moment, header templates are not implemented yet in the grid. You can Follow their status in the following page (I added your vote): https://feedback.telerik.com/blazor/1407601-grid-column-header-title-as-template.

While you could override the CSS rules for the grid headers and text-align: center the text, that would affect all the columns because there is no way to differentiate them at the moment. Nevertheless, here's a sample such rule I made for you in case it suits your needs:

    .k-grid .k-header .k-link, /* for sortable grid */
    .k-grid .k-header {
        text-align: center;
    }

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Tags
Grid
Asked by
Andriy
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or