SmartGWT Version: 6.0-p20171125
Chrome: 62.0.3202.94
The ListGrid.refreshData () method discards the sort. The header shows the correct sorting status but the sorting of the data returns to the initial value.
This happens only if we use a datasource with dataUrl. A SQL Datasource does not have this behavior. The ListGrid has dataFetchMode = local.
At the moment we manage this issue with the following workaround:
selectedState = listGrid.getSortState();
listGrid.unsort();
listGrid.refreshData((dsResponse, data, dsRequest) -> {
listGrid.setSortState(selectedState);
});
What are we doing wrong?
Chrome: 62.0.3202.94
The ListGrid.refreshData () method discards the sort. The header shows the correct sorting status but the sorting of the data returns to the initial value.
This happens only if we use a datasource with dataUrl. A SQL Datasource does not have this behavior. The ListGrid has dataFetchMode = local.
At the moment we manage this issue with the following workaround:
selectedState = listGrid.getSortState();
listGrid.unsort();
listGrid.refreshData((dsResponse, data, dsRequest) -> {
listGrid.setSortState(selectedState);
});
What are we doing wrong?
Comment