3.0.0

Column Header formatting 1.0 vs 2.0

I'm in the process of converting from grid 1.0 to 2.0 and I've got a few questions...

How can I go about setting the vertical text alignment to "top" in the column headers? In version 1.0 this seemed to default to top without any modifications (that I remember). The default with 2.0 seems to be "middle" justified. How can I go about forcing a top vertical alignment for my headers?

Also, I use "<br>" to wrap the column header text. In 1.0 the wrapped 2nd line would follow the CSS text-align formatting (left, right).
I notice in 2.0 that the second line seems to center no matter what the CSS alignment parameter is set. How can I force all lines to follow the CSS format?

Lastly, how can I control the left margin / padding in the column headers ?

Thanks.
JJI
May 25,
The alignment of the last line is not correct because the sort indicator always takes additional 10px (bug). This can be corrected with

.aw-sort-none .aw-grid-sort {
    display: none!important;
}


The header/cell/item text is placed inside span with .aw-item-text class. It can be used to change the alignment or formatting -

.aw-grid-header .aw-item-text {
    vertical-align: top;
    margin-left: 10px;
}

Alex (ActiveWidgets)
May 25,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.