3.2.0

grid

As a newcomer I want to use the grid with other font size. How can set the font properties for the grid ?
Nobima
October 15,
obj.setStyle("font-size", "15px");
Alex (ActiveWidgets)
October 17,
I had been using
#myGrid .aw-item-text {font-size: 9px;}

which worked fine in 2.0. I find it no longer works in 2.5 (my only codefix needed so far). Has it been deprecated?

I should clarify in 2.5 the headers were still in 9px but the grid was not effected.
Michael
December 14,
In 2.5 the grid uses AW.Templates.Cell by default and not AW.Templates.Text as it was in 2.0.

AW.Templates.Cell class does not render inner span element around the cell text, so .aw-item-text does not work. Instead you can apply the style to the cell element -

#myGrid .aw-item-text,
#myGrid .aw-grid-cell {font-size: 9px;}
Alex (ActiveWidgets)
December 17,

This topic is archived.

See also:


Back to support forum