:: Forum >> Version 2 >>

Empty grid one row. 2.5

More information on this topic is available in the documentation section: /general.bugs/2-5.html.

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;

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



This topic is archived.

Back to /general.bugs/2-5.html

Documentation:

Forum search