<script>
var myCells = [
["Cell text", "123", "5/18/2004"],
["More...", "456", "1/12/2006"],["Cell text", "123", "5/18/2004"],
["More...", "456", "1/12/2006"],["Cell text", "123", "5/18/2004"],
["More...", "456", "1/12/2006"]
]
var obj = new AW.UI.Grid;
obj.setCellText(myCells);
obj.setCellEditable(false); // all cells not editable
obj.setColumnCount(3);
obj.setRowCount(6);
obj.setController("myTabKeys", {
onKeyTab: "justalert",
onKeyShiftTab: "selectPreviousCell"
});
document.write(obj);
obj.justalert=function(){
var col = this.getSelectedColumns()[0];
var row = this.getSelectedRows()[0];
alert('called');
this.setSelectedRows([row]);
this.setSelectedColumns([col ]);
this.setCurrentRow(row);
this.setCurrentColumn(col );
}
</script>
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
This topic is archived.