grid data undefined repeatable error
2.0b4 on ie6, virtual mode off
_ load a grid with 500 rows
_ sort on a column
_ reload the grid with 15 rows
_ all the data in the grid says "undefined"
initial grid definition:
var gridCdmItems = new AW.Grid.Extended;
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);
gridCdmItems.setSelectorText(function(ixRow){return this.getRowPosition(ixRow)+1});
gridCdmItems.setFixedLeft( 1 );
gridCdmItems.setVirtualMode( false );
gridCdmItems.setSelectorProperty( 'width', 30 );
document.getElementById( 'cdmItemsCount' ).innerText = cdmItemsRowCount;
document.write( gridCdmItems );
code that reloads the grid:
getCdmItems( document.getElementById( 'cdmId' ).value,
document.getElementById( 'numCdmItems' ).value );
gridCdmItems.setRowCount( cdmItemsRowCount );
gridCdmItems.setColumnCount( cdmItemsColumnCount );
gridCdmItems.setCellText( function( ixCol, ixRow ){ return aarCdmItems[arrDbColumnNames[ixCol]][ixRow] } );
gridCdmItems.refresh();
document.getElementById( 'cdmItemsCount' ).innerText = cdmItemsRowCount;
_ load a grid with 500 rows
_ sort on a column
_ reload the grid with 15 rows
_ all the data in the grid says "undefined"
initial grid definition:
var gridCdmItems = new AW.Grid.Extended;
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);
gridCdmItems.setSelectorText(function(ixRow){return this.getRowPosition(ixRow)+1});
gridCdmItems.setFixedLeft( 1 );
gridCdmItems.setVirtualMode( false );
gridCdmItems.setSelectorProperty( 'width', 30 );
document.getElementById( 'cdmItemsCount' ).innerText = cdmItemsRowCount;
document.write( gridCdmItems );
code that reloads the grid:
getCdmItems( document.getElementById( 'cdmId' ).value,
document.getElementById( 'numCdmItems' ).value );
gridCdmItems.setRowCount( cdmItemsRowCount );
gridCdmItems.setColumnCount( cdmItemsColumnCount );
gridCdmItems.setCellText( function( ixCol, ixRow ){ return aarCdmItems[arrDbColumnNames[ixCol]][ixRow] } );
gridCdmItems.refresh();
document.getElementById( 'cdmItemsCount' ).innerText = cdmItemsRowCount;
muley88
January 31,