3.0 beta 2

Selector resize bug

Hi Alex,

There seems to be a bug when using setSelectorResizable with 2.5.1
In the following code, if you comment out the line with setSelectorResizable, you will be able to resize the columns in FireFox, IE and Opera.
However, if the line is not commented out, trying to resize the columns gives an error (FireFox gives the error "this[get] has no properties")

<html>
<head>
    <script src="runtime/lib/aw.js"></script>
    <link href="runtime/styles/xp/aw.css" rel="stylesheet"></link>
</head>
<body>
<script>
var obj = new AW.Grid.Extended;
obj.setCellText(function(i, j){return j + "." + i});
obj.setHeaderText("header");

obj.setColumnCount(10);
obj.setRowCount(100);

obj.setCellEditable(false);

obj.setSelectorVisible(true);
obj.setSelectorWidth(30);
obj.setSelectorResizable(true);

document.write(obj);
</script>
</body>
</html>
Ankur Motreja
February 3,
Yes, this is a bug in AW 2.5.1 - setSelectorResizable(true) breaks resizing of grid columns. Will be fixed in the next release. Possible workaround -

obj.getHeaders().mapTemplate("selector", function(){
    return this.$owner.getTopSelector(this.$0) +
           (this.$owner.getSelectorResizable() && !this.$0 ? this.$owner.getSeparator("selector") : "");
});
Alex (ActiveWidgets)
February 4,
Fixed in AW 2.5.2.

/general.bugs/2-5-2.html
Alex (ActiveWidgets)
July 3,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.