Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with summary ListGrid and fetchData() operation

    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:
    Code:
    ListGridField costField = new ListGridField("cost");  
    costField.setSummaryFunction(SummaryFunctionType.SUM);      
    listGrid.setFields(costField);
    listGrid.setShowGridSummary(Boolean.TRUE);
    After,
    Code:
    dataSource.addData(newRecord); // add new data 
    listGrid.setDatasource(dataSource);
    listGrid.fetchData(); // After this line.. the grid summary disappears.
    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
    Last edited by geremora; 30 May 2012, 12:35.

    #2
    I'm facing the same problem. Could you solve it?

    Comment

    Working...
    X