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
December 5,
This is a bug in AW 2.5. I don't have a fix yet, will try to make ASAP.
Alex (ActiveWidgets)
December 5,
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 )
December 9,
re-fix:
var rvCount=(end==-1&&start==-1) ? 0 : end-start+1;
Paulo Cesar (PC from Brazil )
December 10,
Alex (ActiveWidgets)
December 10,