I have the same problem as Jim. No scroll bars exist after loading data into a grid. The column definition is 11 columns, when the grid displays the first 6 are shown, but a horizontal scroll-bar does not appear.
I have found that the horizontal scroll will appear if the grid is not sharing the frame with anything else. However if I try to add a button bar across the top of the frame then the scroll bar stops working.
This code shows a scroll bar:
<html>
<head>
<title>Object List Page Grid</title>
<style> body, html {margin:0px; padding: 0px; overflow: hidden;font: menu;border: none;} </style>
<link href="../ActiveWidgets/runtime/styles/flat/grid.css" rel="stylesheet" type="text/css" ></link>
<script src="../ActiveWidgets/runtime/lib/grid.js"></script>
</head>
<body>
<script>
var obj_columns = [
"Filename","Title","Description","DateModified","State","UniqueId","Security","Version","Format","Locked","LockedBy"
];
var obj_data = [
["395381.png", "sample1", "description1", "", "Review", "TestProject1-0000002y", "Project", "1.0", "Image", "n", "", ],
["Point and Click Linux.jpg", "sample2", "description2", "", "Review", "TestProject1-0000002z", "Project", "1.0", "Image", "n", "", ],
];
try {
var scrollGrid = new Active.Templates.Scroll;
var obj = new Active.Controls.Grid;
obj.setRowCount(2);
obj.setColumnCount(11);
obj.setDataText(function(i, j){return obj_data[i][j]});
obj.setColumnText(function(i){return obj_columns[i]});
obj.setLayoutTemplate(scrollGrid);
document.write(obj);
}
catch (error){
document.write(error.description);
}
</script>
</body>
</html>
This code does not show the scroll bar:
<html>
<head>
<title>Object List Page Grid</title>
<style> body, html {margin:0px; padding: 0px; overflow: hidden;font: menu;border: none;} </style>
<script src="../workspace/obj_button_bar.js"></script>
<link href="../ActiveWidgets/runtime/styles/flat/grid.css" rel="stylesheet" type="text/css" ></link>
<script src="../ActiveWidgets/runtime/lib/grid.js"></script>
</head>
<body>
<table><tr><td>
<A href="http://localhost/sjm_edms/import/ImportFrames.html" onMouseOver="return changeImage('btnImport')" onMouseOut=" return changeImageBack('btnImport')" onMouseDown="return handleMDown('btnImport')" onMouseUp="return handleMUp('btnImport')">
<img name="btnImport" src="../images/btnImport.png" width="32" height="24" border="0" alt="Import"></A></td>
<td><A href="http://www.google.com" onMouseOver="return changeImage('btnView')" onMouseOut=" return changeImageBack('btnView')" onMouseDown="return handleMDown('btnView')" onMouseUp="return handleMUp('btnView')">
<img name="btnView" src="../images/btnView.png" width="32" height="24" border="0" alt="View"></A></td>
<td><A href="http://www.google.com" onMouseOver="return changeImage('btnEdit')" onMouseOut=" return changeImageBack('btnEdit')" onMouseDown="return handleMDown('btnEdit')" onMouseUp="return handleMUp('btnEdit')">
<img name="btnEdit" src="../images/btnEdit.png" width="32" height="24" border="0" alt="Edit"></A></td>
<td><A href="http://www.google.com" onMouseOver="return changeImage('btnCheckOut')" onMouseOut=" return changeImageBack('btnCheckOut')" onMouseDown="return handleMDown('btnCheckOut')" onMouseUp="return handleMUp('btnCheckOut')">
<img name="btnCheckOut" src="../images/btnCheckOut.png" width="32" height="24" border="0" alt="Check Out"></A></td>
<td><A href="http://www.google.com" onMouseOver="return changeImage('btnCheckIn')" onMouseOut=" return changeImageBack('btnCheckIn')" onMouseDown="return handleMDown('btnCheckIn')" onMouseUp="return handleMUp('btnCheckIn')">
<img name="btnCheckIn" src="../images/btnCheckIn.png" width="32" height="24" border="0" alt="Check In"></A></td>
<td><A href="http://www.google.com" onMouseOver="return changeImage('btnCancelChkOut')" onMouseOut=" return changeImageBack('btnCancelChkOut')" onMouseDown="return handleMDown('btnCancelChkOut')" onMouseUp="return handleMUp('btnCancelChkOut')">
<img name="btnCancelChkOut" src="../images/btnCancelChkOut.png" width="32" height="24" border="0" alt="Cancel Check Out"></A></td>
<td><A href="http://www.google.com" onMouseOver="return changeImage('btnDelete')" onMouseOut=" return changeImageBack('btnDelete')" onMouseDown="return handleMDown('btnDelete')" onMouseUp="return handleMUp('btnDelete')">
<img name="btnDelete" src="../images/btnDelete.png" width="32" height="24" border="0" alt="Delete"></A></td>
</tr></table>
<script>
var obj_columns = [
"Filename","Title","Description","DateModified","State","UniqueId","Security","Version","Format","Locked","LockedBy"
];
var obj_data = [
["395381.png", "ob1_name", "ob1_descript", "2005-09-15", "Draft", "TestProject1_00000029", "Version", "1.0", "Image", "n", "", ],
["Point and Click Linux.jpg", "ob2_name", "ob2_description", "2005-09-12", "Review", "TestProject1_0000002a", "Read-only", "1.0", "Image", "n", "", ],
["395381.png", "sample1", "description1", "", "Review", "TestProject1-0000002y", "Project", "1.0", "Image", "n", "", ],
["Point and Click Linux.jpg", "sample2", "description2", "", "Review", "TestProject1-0000002z", "Project", "1.0", "Image", "n", "", ],
["395381.png", "ob3_name", "ob3_description", "2005-09-11", "Checked", "TestProject1_0000002b", "Private", "1.1", "Image", "y", "ceg", ],
];
try {
var scrollGrid = new Active.Templates.Scroll;
var obj = new Active.Controls.Grid;
obj.setRowCount(5);
obj.setColumnCount(11);
obj.setDataText(function(i, j){return obj_data[i][j]});
obj.setColumnText(function(i){return obj_columns[i]});
obj.setLayoutTemplate(scrollGrid);
document.write(obj);
}
catch (error){
document.write(error.description);
}
</script>
</body>
</html>