:: Forum >>

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
Tuesday, December 7, 2010
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');
Thursday, December 9, 2010

This topic is archived.


Back to support forum

Forum search