:: Forum >>
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
Friday, November 30, 2007
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
Friday, November 30, 2007
-------------------------------------------------------------------
<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
Sunday, December 2, 2007
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
Monday, December 3, 2007
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
Tuesday, December 4, 2007
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)
Tuesday, December 4, 2007
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 :
http://www.activewidgets.com/javascript.forum.21376.0/2-5-help.html
Armit
Tuesday, December 4, 2007
This topic is archived.
Back to support forum
Forum search