:: Forum >>

Unresponsive script error on firefox

using firefox 1.5, grid version 2.0, grid has 184 columns, 32 rows. have set virtual mode to true.

just wondering if anyone has any pointers to what may have caused this problem ?
heidit
Wednesday, August 16, 2006
In that case I would consider the possibility of "reverse" the cells
32cols X 184rows instead of 184X32 ( if your data-model and design struc. allows you), not only for initial rendering performance, but also for scrolling-rows performance.
Anyway I found that it writes faster with a initial low row/col and then refresh after sets both Counts.
To adjust to your needs ( and test rendering difs)... use:
HTH
var obj = new AW.UI.Grid;
obj.setCellData(function(col, row){return col + "." + row});
obj.setHeaderText( function(col){return col });
obj.setVirtualMode(true);

obj.setColumnCount(1);
obj.setRowCount(1);
obj.setStyle('visibility', 'hidden');
document.write(obj);

window.setTimeout( function(){
obj.setColumnCount(186);
obj.setRowCount(32);
alert('Now Begin rendering ' + obj.getRowCount() + ' rows and ' + obj.getColumnCount() + ' columns');
obj.setStyle('visibility', 'visible')
obj.refresh();
},0);
Carlos
Wednesday, August 16, 2006
thanks carlos, it helps a lot! now i have something to start working on :-)
many thanks
heidit
Thursday, August 17, 2006

This topic is archived.


Back to support forum

Forum search