:: Forum >>

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
Wednesday, November 9, 2005
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
Thursday, November 10, 2005
What about implementing your own sorting model?
Alex
Friday, November 11, 2005
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
Monday, November 14, 2005
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
Wednesday, February 1, 2006

This topic is archived.


Back to support forum

Forum search