3.2.0

Missing last Row

I have been testing the trial version. I have built a grid in which I populate it with 1000 records. When I scroll to the end of the grid the last row is not visible. I can select the last visible row, which is 999, and then use the down arrow key to select the 1000 row; however, it is not visible insode the grid.

Here is the code.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Test Grid</title>
<link href="../css/afcfsc_base.css" rel="stylesheet" type="text/css">


<link href="../css/afcfsc_auth.css" rel="stylesheet" type="text/css">

<link href="../ActiveWidgets/runtime/styles/xp/aw.css" rel="stylesheet" type="text/css">


<script src="../js/utils.js" type="text/javascript" language="JavaScript"></script>
<script src="../js/reqmgr.js" type="text/javascript" language="JavaScript"></script>

<script src="../js/auth.js" type="text/javascript" language="JavaScript"></script>

<script src="../ActiveWidgets/runtime/lib/aw.js" type="text/javascript" language="JavaScript"></script>



</head>
<body onLoad="">
<div class="header">
<img src="../images/afcfscheader.jpg" class="header">
</div>
<div class="body">
<script>
var obj;
var table;

table = null;
obj = null;
obj = new AW.UI.Grid;
table = new AW.XML.Table;

table.setURL("testdata.pl");
table.request();
obj.setSize(600,300);
obj.setHeaderText(["header1","header2","header3","header4","header5"]);
obj.setColumnCount(5);
obj.setRowCount(1001);
obj.setCellModel(table);
obj.setSelectorText(function(i){return this.getRowPosition(i)+1});
obj.setSelectorWidth(50);
obj.setSelectorVisible(true);
obj.onCurrentRowChanging = function(value){
alert(value + ":" + this.getCellText(obj.getCurrentColumn(), obj.getCurrentRow()));
};
obj.onCurrentRowChanged = function(value){
alert(value + ":" + this.getCellText(obj.getCurrentColumn(), obj.getCurrentRow()));
};
document.write(obj);
</script>

</div>
<div class="footer">
<table class="footerlink">
<tr class="footerlink">
<td class="footerlink">
2006 Air Force Judge Advocate General's Corps
</td>
<td class="footerlink" align="right">



|&nbsp;<a href="" class="footerlink">Users Guide</a>&nbsp;



|&nbsp;<a href="" class="footerlink">Privacy
&amp; Security Notice</a>&nbsp;



|&nbsp;<a href="" class="footerlink">WebsiteSupport&nbsp;</a>|


</td>
</tr>
</table>
</div>
</body>
</html>

The xml url request just returns a simple xml document with 1000 records of 5 column data.
Ralph
May 24,

This topic is archived.

See also:


Back to support forum