3.0 beta 2

Version 2.5

Some issues i have.

It seems like extended grid always is locked on first column.
I have also tried some of the examples provided in the package.

I get an error on one of my Grids, the error is activated when i use .refresh(), the special about this grid is that it uses paging.

Error is: NextSibling is null or not an object.
Armit
November 30,
I've had the same (just once) in the past, and if I remember right it's a timeout issue.
(like asking for something not ready yet, rendering talking) :-)
Try to use some 'setTimeout' delay.
HTH
Carlos
November 30,
-------------------------------------------------------------------
<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.UI.Grid;
obj.setCellText(function(i, j){return j + "." + i});
obj.setHeaderText("header");

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

obj.setCellEditable(true);

var toolbar = new AW.HTML.DIV;
toolbar.setId("toolbar");

toolbar.setContent("input", "text");

obj.defineTemplate("bottomLine", toolbar);

obj.setLayoutTemplate(new AW.Panels.Horizontal);
obj.setPanelTemplate(function(i){
switch(i){
case "center": return this.getScrollTemplate();
case "bottom": return this.getBottomLineTemplate();
}
});

obj.onPanelWidthChanged = function(width, panel){
this.getLayoutTemplate().changePanelWidth(width, panel);
};

obj.onPanelHeightChanged = function(height, panel){
this.getLayoutTemplate().changePanelHeight(height, panel);
};

obj.setPanelHeight(23, "bottom"); //bottom line

document.write(obj);
</script>
</body>
</html>
-------------------------------------------------------------------
"bottom" not display
SNOW
December 2,
Found out that the first colmn always has been locked in extended grid, so forget this.

Carlos thanks for the sugestion, but even if i dont use the refresh directly after load, it gives the error when i ex change sort.

I have the same problem as SNOW, not showing my bottom toolbar anymore.

HELP
Armit
December 3,
Seems to be something changed between 2.5Alpha2 (ok) and 2.5rc1.
There is a 50px less on bottom.
In my tests I fixed it this way:

obj.setPanelHeight(0, "top");
obj.setPanelHeight(73, "bottom"); //(73= 23 + 50*)

HTH
Carlos
December 4,
ok, now I see what this problem is - could be fixed with

.aw-ie .aw-grid-box {
padding-bottom: 0px;
}

Normally there is 50px bottom padding which is required for cases where the grid is inside html table tag.
Alex (ActiveWidgets)
December 4,
Hi Carlos

You were right, i just dont understand why it should work in the old version and not the new, after refresh i changed the following code.

if (myCells.length > 0) {
obj.setSelectedColumns([0]);
obj.setSelectedRows([0]);
obj.setCurrentColumn(0);
obj.setCurrentRow(0);

to

setTimeout( function(){
if (myCells.length > 0) {
obj.setSelectedColumns([<%=FirstCol%>]);
obj.setSelectedRows([0]);
obj.setCurrentColumn(<%=FirstCol%>);
obj.setCurrentRow(0);
}
},100);

And it worked.

Perhaps you have an answer for :

/datagrid.21376/2-5-help.html

Armit
December 4,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.