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 );
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,