<html>
<head>
<script src="runtime/lib/aw.js"></script>
<link href="runtime/styles/xp/aw.css" rel="stylesheet"></link>
<style>
.aw-grid-control .aw-ui-input,
.aw-grid-control .aw-ui-combo {
-moz-user-select: text;
}
</style>
</head>
<body>
<script>
var obj = new AW.Grid.Extended;
obj.setCellText(function(i, j){return j + "." + i});
obj.setHeaderText("header");
obj.setColumnCount(10);
obj.setRowCount(100);
obj.setCellEditable(false);
editList = new AW.UI.List;
data1 = ["abcd", "pqrs", "xyz"];
editList.setItemText(data1);
editList.setItemCount(data1.length);
editList.setSize(100,60);
obj.onCellDoubleClicked = function(event, col, row){
obj.setCellTemplate(new AW.Templates.Combo, col, row);
obj.setPopupTemplate(editList, col, row);
obj.getCellTemplate(col, row).refresh();
}
obj.setCellTemplate(new AW.Templates.Combo, 1, 1);
obj.setPopupTemplate(editList, 1, 1);
document.write(obj);
</script>
</body>
</html>
This topic is archived.