Hi all,
I'm using smartGWT 3.0p.
Now, I have a serious problem with the listgrid and grid summaries. The grid summaries disappears after the execute listGrid.fetchData() operation.
Below, I put the source code as example:
After,
In contrast, when I use listGrid.setAutoFetchData(Boolean.TRUE) without call listGrid.fetchData().. the grid summary don't disappears.
The cuestion is that the autoFetchData don't works every time.. We need use fetchData().
Thanks in advance.
Cheers.
Gere
I'm using smartGWT 3.0p.
Now, I have a serious problem with the listgrid and grid summaries. The grid summaries disappears after the execute listGrid.fetchData() operation.
Below, I put the source code as example:
Code:
ListGridField costField = new ListGridField("cost"); costField.setSummaryFunction(SummaryFunctionType.SUM); listGrid.setFields(costField); listGrid.setShowGridSummary(Boolean.TRUE);
Code:
dataSource.addData(newRecord); // add new data listGrid.setDatasource(dataSource); listGrid.fetchData(); // After this line.. the grid summary disappears.
The cuestion is that the autoFetchData don't works every time.. We need use fetchData().
Thanks in advance.
Cheers.
Gere
Comment