<script>
var myData = [
[false,true],
[true,false],
];
var myColumns = [
"CB 1", "CB 2"
];
var obj = new AW.Grid.Extended;
var cbx = new AW.Templates.Checkbox;
cbx.onControlValueChanged = function(){alert("onControlValueChanged")};
cbx.onCellValueChanged = function(){alert("onCellValueChanged")};
cbx.onCellValidated = function(){alert("onCellValidated")};
cbx.onControlClicked = function(){alert("onControlClicked")};
cbx.onClick = function(){alert("onClick")};
obj.setCellTemplate(cbx,0);
obj.setCellTemplate(cbx,1);
obj.setCellText(myData);
obj.setHeaderText(myColumns);
obj.setRowCount(2);
obj.setColumnCount(2);
obj.setSelectorVisible(false);
obj.setSelectorWidth(28);
obj.setHeaderHeight(20);
obj.setCellEditable(true);
obj.setVirtualMode(false);
document.write(obj);
</script>
obj.onCellValueChanged = function(){alert("obj.onCellValueChanged")};
This topic is archived.