3.2.0

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(i, j){return j + "-" + 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
August 24,
By the way, I am using IE 6.0
Mike
August 24,
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
August 24,
Of course you don't need the extra script elements that I included.
DT
August 24,
thanks. works like a charm.
Mike
August 24,

This topic is archived.

See also:


Back to support forum