:: Forum >> Version 2 >>

after first 40 rows, it goes blank!

Hi,

I am new, just did a very simple test as following, but I can't get any further rows after the first 40 rows.

If I do sorting, then I can see all the 100 rows. I am using aw 2.0

Here are the codes:
<script>

<
script>

    var 
obj = new AW.UI.Grid;

//    obj.setStyle("width", "100%");
//    obj.setHeaderHeight(26);
//    obj.setRowHeight(19);
    
obj.setColumnCount(5);
    
obj.setRowCount(100);
    
    
obj.setCellText(function(ij){return "-" i});
    
obj.setHeaderText("header");

    
obj.setStyle("height"obj.getRowCount()*18);
    
obj.setSelectionMode("single-row");

    
document.write(obj);
    
// add this line just after document.write 
 //    obj.getLayoutTemplate().action("adjustSize");
      
</script>
      
 
Thanks a lot!
Mike
Thursday, August 24, 2006
By the way, I am using IE 6.0
Mike
Thursday, August 24, 2006
This looks like a bug related to the fact that virtual mode is set to true by default and the fact that you have such a tall grid (trying to show more than 40 rows at a time).

This will fix the problem:

<script>
obj.setVirtualMode(false);
</script>

Although of course you won't be in virtual mode any longer.


DT
Thursday, August 24, 2006
Of course you don't need the extra script elements that I included.
DT
Thursday, August 24, 2006
thanks. works like a charm.
Mike
Thursday, August 24, 2006



This topic is archived.

Back to support forum

Forum search