3.2.0

v2.0 sorting cells as numbers

i have been looking at the grid.html page in the QuickRef directory, it seems the sorting is done alphabetically, so the sorting of columns employees, $sales and market cap. are not correct. is there anyway to sort them numerically? thanks
mango
November 9,
it would be nice if the sorting was based on the defined column type, so if the column is defined, it sorts the way mango is describing.
Jim Shaffer
November 10,
What about implementing your own sorting model?
Alex
November 11,
Hi Alex,

We have just switched over to AW2.0 from 1.0 and experiencing problem while sorting numeric fields/columns. But was never been a problem in 1.0.

Any tip? Thanks in advance.
Fahad Hanif
November 14,
You have to specify the format of the cell.

var number = new AW.Formats.Number;
obj.setCellFormat(number, 2);

This was answered in another forum thread.

http://www.activewidgets.com/javascript.forum.8193.2/sorting-numbers.html

Geno
February 1,

This topic is archived.

See also:


Back to support forum