Calling DataSource.updateCaches doesn't reflect changes on a ListGrid bound to the DataSource when the ListGrid is grouping values on a column.
I've seen another user reported the same more than a year ago, but then forgot it.
The relevant cache update is triggered by
I'm going to attach a complete test case at [ATTACH]4840[/ATTACH] showing two listgrid that share the same datasource: the grouped one doesn't reflect the cache update, while the other do.
What's wrong with my code? Or is there any workaround?
Reproduced both with SmartGWT 3.0 LGPL and 3.1 [SmartClient Version: v8.3_2012-11-20/LGPL Development Only (built 2012-11-20)]
I've seen another user reported the same more than a year ago, but then forgot it.
The relevant cache update is triggered by
Code:
...
final Button button = new Button ("Update caches");
button.addClickHandler (new ClickHandler() {
@Override
public void onClick (ClickEvent event) {
final DSResponse dsResponse = new DSResponse ();
final DSRequest dsRequest = new DSRequest ();
Record record = new Record (changingRecord.toMap ());
record.setAttribute ("name", "row 2 with changed value!!!");
dsResponse.setData (new Record [] {record});
dsRequest.setOperationType (DSOperationType.UPDATE);
dataSource.updateCaches (dsResponse, dsRequest);
}
});
...
What's wrong with my code? Or is there any workaround?
Reproduced both with SmartGWT 3.0 LGPL and 3.1 [SmartClient Version: v8.3_2012-11-20/LGPL Development Only (built 2012-11-20)]
Comment