3.2.0

version 2.0b4 very slow sorting

I'm using 2.0b4 on ie6 with virtual mode off.

Data in the grid is 4 columns and 500 rows. It takes 7 seconds to sort the grid when I click a column heading, which is very long. When I use AW.UI.Grid it takes about 1/2 that time, which is better, but still seems long. I may be doing something wrong here. Any ideas?

var gridCdmItems = new AW.Grid.Extended;
//var gridCdmItems = new AW.UI.Grid;
gridCdmItems.setSize(600, 300);
gridCdmItems.setColumnCount( cdmItemsColumnCount );
gridCdmItems.setRowCount( cdmItemsRowCount );
gridCdmItems.setCellText( function( ixCol, ixRow ){ return aarCdmItems[arrDbColumnNames[ixCol]][ixRow] } );
gridCdmItems.setHeaderText( function( ix ){ return arrColumnNames[ix] } );
gridCdmItems.setSelectorVisible(true);
// obj.setSelectorResizable(true);
// obj.setSelectorWidth(25);
gridCdmItems.setSelectorText(function(ixRow){return this.getRowPosition(ixRow)+1});
gridCdmItems.setFixedLeft( 1 );
gridCdmItems.setVirtualMode( false );
gridCdmItems.setSelectorProperty( 'width', 30 );
document.getElementById( 'cdmItemsCount' ).innerText = cdmItemsRowCount;

// write grid html to the page
document.write( gridCdmItems );

Jim D.
January 31,
With 500 rows why wouldn't you want virtual mode turned on? There are too many rows for non-virtual grid to handle quickly. That was the entire reason that the virtual mode was created. If you choose to not use virtual mode then you have chosen to accept slower performance on large amounts of data. This is just a fact of life, Virtual mode on=fast grid and Virtual mode off= slower grid.
Jim Hunter
January 31,

This topic is archived.

See also:


Back to support forum