Any chance of an example on this? I'm trying to set all the cells in a particular column to right align & to be formatted as a currency string.

Steve Childs
March 15,

here is an example -

    .aw-column-1 {
        text-align: right;
    var obj = new AW.UI.Grid;
    obj.setCellData("123456", 1);

    var ccy = new AW.Formats.Number;
    ccy.setTextFormat("$ #,###.##");
    obj.setCellFormat(ccy, 1);


You can use CSS rules attached to .aw-column-... selector to style your cell text (color or alignment).

If you want to transform the cell data on the client - assing it to cell data property (instead of cell text) and use AW.Formats.... classes.
Alex (ActiveWidgets)
March 16,

This topic is archived.

See also:

Back to support forum


Version 2

Looking for AW 2.6 ?
The old site is here.