3.0.0

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?
October 20,
I failed to mention, I just upgraded to the lastest version.

Ed Arthur
[email protected]
Ed Arthur
October 20,
October 20,
October 20,
thanks,
Ed Arthur
October 20,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.