3.2.0

Extended Grid refresh() causes columns to blank out

I'm seeing some very strange behavior with the columns in the extended grid when I call refresh(). My production code has the first column (which has been resized with setColumnWidth) jump to its default size before jumping back to the set width whenever I call refresh(). I can't easily repro this in a simple test page, but the following page does display some of the weirdness I've seen:

<html>
<head>
<script type="text/javascript" src="activewidgets/runtime/lib/aw.js"></script>
<link rel="stylesheet" href="activewidgets/runtime/styles/xp/aw.css" type="text/css"></link>

<script type="text/javascript">
var list = new AW.Grid.Extended;

list.setColumnCount(10);

list.setHeaderText(["Col 0","Col 1","Col 2","Col 3","Col 4","Col 5","Col 6","Col 7","Col 8","Col 9"]);

list.setSize(700, 300);

list.setFixedLeft(0);
list.setRowCount(100);
list.setCellText(function(row, col) { return row + ":" + col; });

for (var i = 0; i < 10; i++) {
    list.setColumnWidth((i * 10) + 20, i);
}
document.write(list);

</script>

</head>
<body>
<p>
    <input type="button" onclick="list.refresh();" value="Refresh"/>
</p>
</body>
</html>


What I am seeing is that the column headers blank out every time you refresh the grid, in both AW 2.0.1 and 2.0.2rc1. Is there any way to avoid this?

Note also that if I leave out setFixedLeft(0), then column 0 goes to 0 width for a second every time I refresh in AW 2.0.1 (but seemingly not in 2.0.2rc1).

Any ideas?
Sasha.
February 16,
Update: These problems only seem to happen on Firefox.
Sasha.
February 19,
This is similar to the problem I just posted. Hopefully, someone knows something about this.
Dean
February 21,

This topic is archived.

See also:


Back to support forum