var obj = new AW.UI.Grid;
obj.setCellText(function(i, j){return j + "." + i});
obj.setHeaderText("header");
obj.onCellMouseUp = function (e,col,row) {
alert("mouseUp: "+col+" "+row);
}
obj.setColumnCount(10);
obj.setRowCount(100);
obj.setCellEditable(true);
document.write(obj);
<script>
var obj = new AW.UI.Grid;
obj.setCellText(function(i, j){return j + "." + i});
obj.setHeaderText("header");
obj.onCellMouseUp = function (e,col,row) {
document.getElementById("theDiv").innerHTML = document.getElementById("theDiv").innerHTML + "<BR>mouseUp: "+ col +" "+ row;
}
obj.onCellMouseDown = function (e,col,row) {
document.getElementById("theDiv").innerHTML = document.getElementById("theDiv").innerHTML + "<BR>mouseDown: "+ col +" "+ row;
}
obj.onCellMouseOut = function (e,col,row) {
document.getElementById("theDiv").innerHTML = document.getElementById("theDiv").innerHTML + "<BR>mouseOut: "+ col +" "+ row;
}
obj.onCellMouseOver = function (e,col,row) {
document.getElementById("theDiv").innerHTML = document.getElementById("theDiv").innerHTML + "<BR>mouseOver: "+ col +" "+ row;
}
obj.setColumnCount(10);
obj.setRowCount(100);
obj.setCellEditable(true);
document.write(obj);
</script>
<div id="theDiv"></div>
mouseOver: 0 0
mouseDown: 0 0
mouseUp: 0 0
mouseOut: 0 0
mouseOver: 1 0
mouseDown: 1 0
mouseUp: 1 0
mouseOut: 1 0
mouseOver: 2 0
mouseDown: 2 0
mouseUp: 2 0
mouseOut: 2 0
mouseOver: 3 0
mouseDown: 3 0
mouseUp: 3 0
mouseOut: 3 0
This topic is archived.