JS setCellFormat() does not work in 2.0b3
It appears that none of the formats (number, date, ...) work for JS arrays in AW version 2.0b3
Rick Villela
December 12,
var myData = [
["text", "123", "12-1-2005"],
["more text", "56.1", "3-21-2004"]
]
var str = new AW.Formats.String;
var num = new AW.Formats.Number;
var date = new AW.Formats.Date;
num.setTextFormat("###.##");
date.setTextFormat("d-mmm-yyyy");
var obj = new AW.UI.Grid;
obj.setCellData(myData);
obj.setCellFormat([str, num, date])
obj.setColumnCount(3);
obj.setRowCount(2);
document.write(obj);
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021