Problems filling my grid
hi guys,
i have the following problem, i downloaded the new 2.0 beta and i have to say i like what i see ;). When i try to fill it with custom data it won't work.
standard is like this:
<script>
var obj = new AW.UI.Grid;
obj.setControlSize(400, 100);
obj.setCellText("cell");
obj.setHeaderText("header");
obj.setColumnCount(5);
obj.setRowCount(10);
document.write(obj);
</script>
This fills all the colums with the content "Cell"
i modyfied it like this:
<script>
var obj = new AW.UI.Grid;
obj.setControlSize(526, 100);
obj.setCellText (["1","2", "3", "4", "5"]);
obj.setHeaderText("header");
obj.setColumnCount(5);
obj.setRowCount(5);
document.write(obj);
</script>
this works but when i try to add a new lines like this :
obj.setCellText (
["1","2", "3", "4", "5"],
["2","2", "3", "4", "5"],
["3","2", "3", "4", "5"],
["4","2", "3", "4", "5"],
["5","2", "3", "4", "5"]);
it won't work.. does anyone have any suggestions
i have the following problem, i downloaded the new 2.0 beta and i have to say i like what i see ;). When i try to fill it with custom data it won't work.
standard is like this:
<script>
var obj = new AW.UI.Grid;
obj.setControlSize(400, 100);
obj.setCellText("cell");
obj.setHeaderText("header");
obj.setColumnCount(5);
obj.setRowCount(10);
document.write(obj);
</script>
This fills all the colums with the content "Cell"
i modyfied it like this:
<script>
var obj = new AW.UI.Grid;
obj.setControlSize(526, 100);
obj.setCellText (["1","2", "3", "4", "5"]);
obj.setHeaderText("header");
obj.setColumnCount(5);
obj.setRowCount(5);
document.write(obj);
</script>
this works but when i try to add a new lines like this :
obj.setCellText (
["1","2", "3", "4", "5"],
["2","2", "3", "4", "5"],
["3","2", "3", "4", "5"],
["4","2", "3", "4", "5"],
["5","2", "3", "4", "5"]);
it won't work.. does anyone have any suggestions
seB
November 14,