:: Documentation >>

Formats

Often just having the cell text is not enough. For example, correct sorting requires converting cell text to the numeric value. Or the date may be stored in XML file in ISO8601 format but shown as mm/dd/yy. The data transformations are performed by formatting classes assigned to cell format property.

Typically several formatting objects are created, configured and assigned to the grid cells with setCellFormat() method.

var string = new AW.Formats.String;

var number = new AW.Formats.Number;
number.setTextFormat("$ #,###.##");

var date = new AW.Formats.Date;
date.setDataFormat("ISO8601"); 
date.setTextFormat("mm/dd/yy");

grid.setCellFormat([string, number, number, date]);

Comments

Sorting grid based on Date Ravi (1)
Null values in cells with number formats Thomas Henrichs (2)
Arabic Charset Alignment Mukesh Verma (0)
File Size information M (2)
Formatting Has No Effect Kevin (2)
cell format (3)

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5