Checkbox problem..
Hi, please have a look at the following code snippet:
<script>
var obj = new AW.UI.Grid;
obj.setCellText("a");
obj.setHeaderText("header");
obj.setColumnCount(10);
obj.setRowCount(100);
obj.setCellEditable(true);
document.write(obj);
</script>
It's supposed to print editable cells populated with the text "a" for 100 rows. The modified data will still be there if we edit a particular cell and scroll to the bottom of the grid.
The problem is, when I try to modify the above coding, set the cell text to a check box like:
obj.setCellText("<input type="checkbox" />);
It generates a lot of check boxes and I tried to check one of them and scrolled downward, then go back to the top again and the original check box remained unchecked.
One behavior of the grid I've observed is, if there are a lot of rows/data being populated, and if we try to scroll through the grid, the grid itself will flash and freeze for a while, is it trying to reload all the data stored in javascript? How do I tackle the check box problem, so that it can "remember" the users' action? Many thanks.
<script>
var obj = new AW.UI.Grid;
obj.setCellText("a");
obj.setHeaderText("header");
obj.setColumnCount(10);
obj.setRowCount(100);
obj.setCellEditable(true);
document.write(obj);
</script>
It's supposed to print editable cells populated with the text "a" for 100 rows. The modified data will still be there if we edit a particular cell and scroll to the bottom of the grid.
The problem is, when I try to modify the above coding, set the cell text to a check box like:
obj.setCellText("<input type="checkbox" />);
It generates a lot of check boxes and I tried to check one of them and scrolled downward, then go back to the top again and the original check box remained unchecked.
One behavior of the grid I've observed is, if there are a lot of rows/data being populated, and if we try to scroll through the grid, the grid itself will flash and freeze for a while, is it trying to reload all the data stored in javascript? How do I tackle the check box problem, so that it can "remember" the users' action? Many thanks.
Foo
February 7,