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

[Solved] Alignment of Group Header

2 Answers 156 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sushma lochab
Top achievements
Rank 1
sushma lochab asked on 21 Dec 2009, 09:39 AM
Hi,

Whenever I perform grouping on a column , alignment of group header is not right.
I've tried to access GroupHeaderItem on PreRender and set VerticleAlignment to 'Middle'
....but of no use.(Please refer attached snapshot - GroupUI.png)

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 21 Dec 2009, 11:24 AM
Hello Sushma,

Probably your web page is running in quirks mode (no DOCTYPE or old HTML DOCTYPE). In this case you can adjust the groupheader's vertical alignment with CSS. Modify the value in orange, according to your preference:


div.RadGrid  .rgGroupHeader  td  div  div
{
    top:-0.2em;
}

div.RadGrid  .rgGroupHeader  td  div  div  div
{
    top:0;
}


All the best,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
sushma lochab
Top achievements
Rank 1
answered on 21 Dec 2009, 12:15 PM
Thanks!
It worked:)
Tags
Grid
Asked by
sushma lochab
Top achievements
Rank 1
Answers by
Dimo
Telerik team
sushma lochab
Top achievements
Rank 1
Share this question
or