Can I put it inside a table
Can I put it inside a table
February 6,
<table>
<tr><td>other stuff</td></tr>
....
<tr><td id='insertAWGRIDhere'></td></tr>
</table>
<script>
var obj = new AW.UI.Grid;
obj .setId("myGrid");
obj .setSize(600, 250);
obj .setCellText(function(i, j){return j + "-" + i});
obj .setHeaderText("header");
obj .setColumnCount(3);
obj .setRowCount(3);
obj .setCellEditable(true);
document.getElementById("insertAWGRIDhere").innerHTML=obj.toString();
<html><head>
<script src="runtime/lib/aw.js"></script>
<link href="runtime/styles/xp/aw.css" rel="stylesheet"></link>
</head> <body>
<script>
var myData = [
["aa","USPS ","0","9"],
["bb","Email","1","9"],
["cc","FedEX","2","9"],
["cc","FedEX","2","9"],
["dd","Phone","1","9"]
];
var obj = new AW.UI.Grid;
obj.setCellText(myData);
obj.setColumnCount(3);
obj.setRowCount(5);
</script>
Here is some text on a page
<table border=10 cellpadding=10 cellspacing=10>
<tr><td>Add a grid to this column using line below<br>
<script>
document.write(obj);
</script>
</td></tr></table>
</body>
</html>
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021