:: Forum >>

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
Sunday, February 3, 2008
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)
Monday, February 4, 2008
Fixed in AW 2.5.2.

http://www.activewidgets.com/general.bugs/2-5-2.html
Alex (ActiveWidgets)
Thursday, July 3, 2008

This topic is archived.


Back to support forum

Forum search