Hi,
In the most recent version of Grid (5.1.4) we noticed a strange behaviour: when we have a grid with paginated AjaxStore and a sorter is active, it won't update rows when page is changed. The data is returned from server correctly, but it just won't update the grid. It also makes the request twice, with same payload.
Bug or missing config? Version 5.1.3 doesn't have such problem.
Our grid (somewhat simplified):
new Grid({
adopt: this.elementRef.nativeElement, // using angular
store: new AjaxStore({
readUrl: 'path/to/url',
autoLoad: true,
pageSize: 5, // can be changed to 5, 10, 20, 30, 40 or 50, selector implemented as widget in bbar
pageSizeParamName: 'iPageSize',
pageStartParamName: 'iPage',
sortParamName: 'strSoters',
listeners: {
beforeLoadPage: ({ params }) => {
params.strSearchWord = this.searchWord;
params.iFilterNumber = this.filterNumber;
},
beforeSort: event => {
event.srouce.params = {
strSearchWord: this.searchWord,
iFilterNumber: this.filterNumber
}
}
}
}),
// pretty standard column config with mostly field and name properties, no listeners etc..
columns: [],
selectionModeOptions: {
row: false,
checkbox: false,
showCheckAll: false,
},
listeners: {
cellClick: () => {
// cell click event handler
}
},
bbar: {
type: 'pagingtoolbar'
}
});
Two same requests on page change, when column is sorted:
Request response, note only one item (just now noticed pageNumber 0):
Grid after request done: