Hi Ueikattan,
thank you very much for your example!
I have one more issue with the grid:
My data service supports paging, to only get the elements which should be displayed within the current page.
I configured the grid.pageSettings property like this:
pageSettings = {
currentPage: 1,
pageSize: 2,
pageSizes: [2, 10, 20, 50]
};
In my example, I have a total of 4 elements. When requesting the first page the service returns the first 2 elements and also a totalItems number of 4.
After I got back the search result, I update the pageSettings.totalRecordsCount to 4. But it looks like that the grid page renderer doesn't take that into account. I attached a screen shoot.
I expected that the pager displays 2 pages (at the bottom left) and also updates "1 of 1 pages (2 items)" to "1 of 2 pages (4 items)" (at the bottom right).
Can you please tell me what I need to do here?
Kind regards,
Sörnt Poppe
Attachment:
CurrentState_292ca4db.zip