:: Forum >>
Empty grid one row. 2.5
Try this example.
<SCRIPT>
var obj = new AW.UI.Grid;
obj.setCellData(function(col, row){return col + "." + row});
obj.setHeaderText("header");
obj.setColumnCount(10);
obj.setRowCount(0);
document.write(obj);
</script>
One row is in the grid.
Flaffer
Wednesday, December 5, 2007
This is a bug in AW 2.5. I don't have a fix yet, will try to make ASAP.
Alex (ActiveWidgets)
Wednesday, December 5, 2007
Hi alex,
I think i found the reason of this error.
The error only happens when setVirtualMode is true.
In your free source code, in line:
AW.Grid.Rows=..
You have this statement:
if(virtual){count=this.getViewProperty("virtualCount"); ...
And this property is setted on:
AW.Grid.Controllers.Virtual=...
Check this code:
var rvCount=end-start+1;
...
this.setRowVirtualCount(rvCount);
To fix the "empty grid one row BUG", i just changed to:
var rvCount=end-(start+1)
And everything goes fine. Hope this help.
Paulo Cesar (PC from Brazil )
Sunday, December 9, 2007
re-fix:
var rvCount=(end==-1&&start==-1) ? 0 : end-start+1;
Paulo Cesar (PC from Brazil )
Monday, December 10, 2007
Alex (ActiveWidgets)
Monday, December 10, 2007
fixed in AW 2.5.1
Alex (ActiveWidgets)
Tuesday, December 11, 2007
This topic is archived.
Back to support forum
Forum search