3.0.5

sorting bug

It seems that the third column in this example is not sorting. This is the 2.0 release.

var obj = new AW.UI.Grid;
var data = [
[1,"1",1],
[2,"1",1],
[3,"2",2]
];
obj.setCellData(data);
obj.setRowCount(3);
obj.setColumnCount(3);
document.write(obj);

Seems to happen with numeric columns in which there are duplicate values.
DT
July 7,
u need set the format for cell
obj.setCellFormat(AW.Formats.Number, 3);
Paulo Cesar Silva Reis (PC from Brazil).
July 7,
Yes, this is a bug in AW 2.0.1 - sorting equal numbers breaks when the format is not specified. The workaround is to set numeric format for this column -

var obj = new AW.UI.Grid;
var data = [
    [1,"1",1],
    [2,"1",1],
    [3,"2",2]
];

obj.setCellData(data);

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

obj.setRowCount(3);
obj.setColumnCount(3);

document.write(obj);



Alex (ActiveWidgets)
July 9,
in this example is not sorting. This is the 2.0 release.

var obj = new AW.UI.Grid;
var data = [
[390,00],
[260,00],
[85,80],
[44,20],
[162.461,65],
[158.103,14],
[144.712,15],
[84,428,51],
[77,261,16]
];

obj.setCellFormat([number]);

document.write(obj);





Newton - From Brasil
January 26,

This topic is archived.

See also:


Back to support forum