:: Forum >>


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
Wednesday, March 15, 2006

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)
Thursday, March 16, 2006

This topic is archived.

Back to support forum

Forum search