:: Forum >>

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

Ed Arthur
ed@edarthur.com
Ed Arthur
Tuesday, October 20, 2009
http://www.activewidgets.com/javascript.forum.22706.1/obj-clearrowmodel-results-in-missing.html
Tuesday, October 20, 2009
http://www.activewidgets.com/javascript.forum.10753.2/clear-grid-before-reloading-with.html
http://www.activewidgets.com/javascript.forum.18246.5/is-posible-load-a-new.html
Tuesday, October 20, 2009
thanks,
Ed Arthur
Tuesday, October 20, 2009

This topic is archived.


Back to support forum

Forum search