:: Forum >>
Sorting numbers
Hi,
It seems like sorting numbers doesnt work anymore (even in the examples that came with version 2)
is there a known work-around?
Thanks!
Monday, October 24, 2005
to clarify, it takes the number as characters....so 31000, is less than 4000
any input is very much appreciated!
Monday, October 24, 2005
The previous version was trying to guess what kind of data you have and it did not work very well. In 2.0 you have to specify data format explicitly:
var data = [
["xxx", "40000"],
["yyy", "500"],
["zzz", "10"]
]
var obj = new AW.UI.Grid;
obj.setCellText(data);
obj.setColumnCount(2);
obj.setRowCount(3);
var number = new AW.Formats.Number;
obj.setCellFormat(number, 1);
document.write(obj);
Alex (ActiveWidgets)
Monday, October 24, 2005
This topic is archived.
Back to support forum
Forum search