[no subject]
The following html works. That is, starts out with a grid with one row, and when I click the add button, additional rows get added. However if I comment out the line marked "COMMENT OUT THIS LINE", that is if the grid starts out with 0 rows, then when I click on add button, a row does get added, but all of the values are placed into the first column. I have tested this against 2.0 and 2.0.1. Same problem in both cases. Please take a look.
<script>
var obj = new AW.UI.Grid;
obj.setStyle("width", "100%");
var data = [];
data = [[1,2,3,4,5]];//TRY COMMENTING OUT THIS LINE
obj.setCellData(data);
obj.setRowCount(data.length);
obj.setColumnCount(5);
document.write(obj);
function add() {
data[data.length] = [1,2,3,4,5];
obj.addRow(data.length-1);
}
</script>
<button onclick="add()">add</button>
DT
October 6,