3.2.0

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;

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,
yes, this is it. I have posted the corrected code here -
http://www.activewidgets.com/general.bugs/2-5-1.html
Alex (ActiveWidgets)
December 10,
fixed in AW 2.5.1
Alex (ActiveWidgets)
December 11,

This topic is archived.

See also:


Back to support forum