3.2.0

Right aligning numeric fields in grid

I have a grid that is dynamically filled from a database. I set the data types (string, date, number) for each column and everything displays correctly, except that everything is aligning to the left.

I would like the number type fields to align to the right. I have been scanning this site and the documentation without success.

Any suggestions?

Richard
December 7,
define a style:
<style>
.aw-column-0 {text-align: center;}
.aw-column-1 {text-align: right;}
.aw-column-2 {text-align: center;}
</style>

Or by js:
obj.getCellTemplate(columnNumber).setStyle('text-align', 'right');
December 9,

This topic is archived.

See also:


Back to support forum