<html>
<head>
<script src="runtime/lib/aw.js"></script>
<link href="runtime/styles/xp/aw.css" rel="stylesheet"></link>
<style>
#myInput {width: 150px; height: 25px}
</style>
</head>
<body>
<script>
var obj = new AW.Grid.Extended;
obj.setSize(800, 250);
obj.setCellText(function(i, j){return j + "-" + i});
obj.setHeaderCount(2);
obj.setHeaderText("header");
obj.setHeaderText(["sub 0", "sub 1", "sub 2", "Sub 3", "Sub 4", "Sub 5", "Sub 6", "Sub 7", "Sub
8", "Sub 9"], 1);
obj.setColumnCount(10);
obj.setRowCount(10);
obj.onHeaderClicked = function() {
var inp = new AW.UI.Input;
inp.setId("myInput");
inp.setControlText("Some text");
inp.setControlImage("favorites");
obj.setHeaderTemplate(inp, 1, 1);
inp.setAttribute("aw", "control");
obj.getHeaderTemplate(1, 1).refresh();
//obj.refresh();
}
document.write(obj);
</script>
</body>
</html>
obj.onHeaderClicked = function() {
var inp = new AW.UI.Input;
inp.setId("myInput");
inp.setControlText("Some text");
inp.setControlImage("favorites");
this.setHeaderTemplate(inp, 1, 1);
this.getHeadersTemplate(1, "center").refresh();
}
This topic is archived.