3.2.0

RE: adding html on page with grid

I believe one can still use document.write(obj) inside TD element:

<tr>
<td>
<script language="javascript">
var obj1 = new Active.Controls.Grid;
obj1.setId("grid1");
obj1.setRowCount(15);
obj1.setColumnCount(5);
obj1.setDataText(function(i, j){return data1[i][j]});
obj1.setColumnText(function(i){return columns1[i]});
obj1.setAttribute("tabIndex", 1);
document.write(obj1);
</script>
</td>
</tr>

You just need to fix the size of the TABLE upfront. table-layout:fixed also helps.

Grid inherits the font from the parent element, so you either need to fix the font for the table or assign the font rules to the grid (.active-controls-grid or #grid1 selector)
Alex (ActiveWidgets)
January 20,

This topic is archived.


Back to support forum