grid refresh() - change data
I am creating a grid with
var gridFwds = new AW.UI.Grid;
gridFwds.setId("gridFwds");
gridFwds.setRowHeight(20); // set row height to 30px
gridFwds.setHeaderText(headers);
gridFwds.setCellFormat(num, 4,5,6);
gridFwds.setColumnCount(headers.length);
gridFwds.setSelectionMode("single-row");
gridFwds.setVirtualMode(true);
gridFwds.setControlVisible ( true );
then based on which dataset (JavaScript array) I am doing the following:
gridFwds.setCellData(jjData);
gridFwds.setRowCount(jjData.length);
gridFwds.setColumnIndices([1,2,3,4,5,6,12,7]);
gridFwds.sort(0, "descending");
gridFwds.refresh();
The setCellData, setRowCount, setColumnIndices are different for each of three grids.
I works fine on the first gird which has the least number of rows. But when I call the code to change data, it sets the ColumnIndices correctly, the number of rows correctly, but it only displays data for the number of rows that were there the first time it was set.
What else do I need to do?
var gridFwds = new AW.UI.Grid;
gridFwds.setId("gridFwds");
gridFwds.setRowHeight(20); // set row height to 30px
gridFwds.setHeaderText(headers);
gridFwds.setCellFormat(num, 4,5,6);
gridFwds.setColumnCount(headers.length);
gridFwds.setSelectionMode("single-row");
gridFwds.setVirtualMode(true);
gridFwds.setControlVisible ( true );
then based on which dataset (JavaScript array) I am doing the following:
gridFwds.setCellData(jjData);
gridFwds.setRowCount(jjData.length);
gridFwds.setColumnIndices([1,2,3,4,5,6,12,7]);
gridFwds.sort(0, "descending");
gridFwds.refresh();
The setCellData, setRowCount, setColumnIndices are different for each of three grids.
I works fine on the first gird which has the least number of rows. But when I call the code to change data, it sets the ColumnIndices correctly, the number of rows correctly, but it only displays data for the number of rows that were there the first time it was set.
What else do I need to do?
October 20,