Reloading a grid with new columns in AW 2.5
I have a grid in an iframe that for certain operations needs to be reloaded with a different set of columns. To avoid the delay in reloading the entire source of the iframe, I reset the contents of the grid directly, using the following code (variable assignments have been left out for simplicity):
The above code worked fine in AW 2.0. But in AW 2.5, the columns get all confused, showing the data in only the first three columns, the remaining columns are blank. I assume it has something to do with the new virtual column scrolling in AW 2.5, but I don't know where to start in figuring out what needs to be reset to get it to work properly. Does anyone know how to reset the virtual column data to reload a grid with new columns?
grid.setHeaderText(field_array);
for (loop = 0; loop < num_columns; loop++)
grid.setColumnWidth(column_widths_array[loop],loop);
grid.setColumnCount(num_columns);
grid.setSelectedRows([record_number]);
grid.setCurrentRow(record_number);
grid.setSelectedColumns([0]);
grid.setCurrentColumn(0);
grid.setRowCount(num_records);
grid.setScrollTop(scroll_top);
grid.setCellText([]);
grid.refresh();
The above code worked fine in AW 2.0. But in AW 2.5, the columns get all confused, showing the data in only the first three columns, the remaining columns are blank. I assume it has something to do with the new virtual column scrolling in AW 2.5, but I don't know where to start in figuring out what needs to be reset to get it to work properly. Does anyone know how to reset the virtual column data to reload a grid with new columns?
Randall Severy
December 26,