:: Home >>

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

19 Aug 11
Sorting grid based on Date Ravi (1)
20 Jun 08
Null values in cells with number formats Thomas Henrichs (2)
18 Dec 07
Arabic Charset Alignment Mukesh Verma (0)
16 Nov 07
File Size information M (2)
27 Aug 07
Formatting Has No Effect Kevin (2)
7 Mar 07
cell format (3)

Comments will appear on this page and in the main forum.

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