Hi, I am using AsyncDataProvider and in my testcase I have 3 pages:
I do 2 things in my server callback:
AsyncDataProvider<TableDataRow> dataProvider = new AsyncDataProvider<TableDataRow>() { protected void onRangeChanged(HasData<TableDataRow> display) { final int start = pager.getPage() * pageSize; server.loadData(start, pageSize, new GenericCallback<TableDataResult>() { public void onSuccess(TableDataResult result) { updateRowCount((int) result.getTotal(), true); // Without this line it works perfect, with it it doesn't on the last page updateRowData(start, result.getRowList()); } }); } }; -- With kind regards, Geoffrey De Smet -- |
- AsyncDataProvider's updateRowCount(int, boolean) method d... Geoffrey De Smet
- Re: AsyncDataProvider's updateRowCount(int, boolean)... John LaBanca
- Re: AsyncDataProvider's updateRowCount(int, bool... Geoffrey De Smet