Grid not displaying top row

It seems as if the setCurrentRow method is causing the top row to "hide" behind the header. If you uncomment
from the code below, you will see that the top row disappears. If you scroll up and down in the grid, it "pops" out from behind the header.

            <script src="aw/aw.js"></script>
            <link href="aw/styles/xp/aw.css" rel="stylesheet"></link>
            var HeaderText = ["Number","Description"];
            var CellText = [
            ["1","Description 1"],
            ["2","Description 2"],
            ["3","Description 3"],
            ["4","Description 4"],
            var Browse = new AW.UI.Grid;
//          Browse.setCurrentRow(0);  // This seems to cause the problem
Rick Jordan
November 22,
Yes, definitely a bug.
Alex (ActiveWidgets)
November 22,
I notice this has not been attended to in Beta 3.

Please can it be prioritized because if we cannot set the Current Row, using setCurrentRow() the user gets very confused because it looks as if the highlighted row is selected when in fact it is not.

If the user tries to do something with the highlighted record (e.g. view the record) without clicking on the grid first, the getCurrentRow() method returns 0. From a coding point of view, this is our problem:
function	ViewRecord() {
 var RecordID = obj.getCurrentRow();
 alert('RecordID = ' + RecordID);
// Returns 0 if [b]setCurrentRow()[/b]
// has not been set and user doesn't
// click on the grid to select a row

Is there a workaround in the meantime? If not, please can it be fixed in Beta 4.
Rick Jordan
November 30,

This topic is archived.

See also:

Back to support forum