Grid not displaying top row
It seems as if the setCurrentRow method is causing the top row to "hide" behind the header. If you uncomment
Browse.setCurrentRow(0);
from the code below, you will see that the top row disappears. If you scroll up and down in the grid, it "pops" out from behind the header.
<html>
<head>
<script src="aw/aw.js"></script>
<link href="aw/styles/xp/aw.css" rel="stylesheet"></link>
</head>
<body>
<script>
var HeaderText = ["Number","Description"];
var CellText = [
["1","Description 1"],
["2","Description 2"],
["3","Description 3"],
["4","Description 4"],
];
var Browse = new AW.UI.Grid;
Browse.setHeaderText(HeaderText);
Browse.setCellText(CellText);
Browse.setColumnCount(2);
Browse.setRowCount(4);
Browse.setSelectionMode("single-row");
Browse.setSelectedRows([0]);
// Browse.setCurrentRow(0); // This seems to cause the problem
document.write(Browse);
</script>
</body>
</html>
Rick Jordan
November 22,