3.0.5

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!

October 24,
to clarify, it takes the number as characters....so 31000, is less than 4000

any input is very much appreciated!
October 24,
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)
October 24,

This topic is archived.

See also:


Back to support forum