Hi all, When I use a filter in CellTable, I can not get correct paging index and data output in table when I input desired prefix in filter textbox from e.g. page 2 or later if filtered data length is smaller that page size:
for example: my page size is 8 before doing any filter I have a,b,c,d,e,f,g,h 8 elements in my page 1, and i,j,k,l,m,n,o,p 8 elements in my page 2, if I filter b from first page, it works fine. But if I move to page 2 and filter b, nothing is on table, I have "9-9 of 1" beside my table like: 9-9 of 1 I have to click and switch back to page 1 to see the real result. Looks like I have the correct filtering result, but it displays from page 2 which is empty page in this case. When I debug gwt https://github.com/gwtproject/gwt/blob/c9c32256f6ffb8ca69f50693a06b91bc25331fef/user/src/com/google/gwt/view/client/AbstractDataProvider.java#L210 protected void updateRowData(HasData<T> display, int start, List<T> values ) { int end = start + values.size(); Range range = display.getVisibleRange(); int curStart = range.getStart(); int curLength = range.getLength(); int curEnd = curStart + curLength; if (start == curStart || (curStart < end && curEnd > start)) { // Fire the handler with the data that is in the range. // Allow an empty list that starts on the page start. int realStart = curStart < start ? start : curStart; int realEnd = curEnd > end ? end : curEnd; int realLength = realEnd - realStart; List<T> realValues = values.subList( realStart - start, realStart - start + realLength); display.setRowData(realStart, realValues); } } end is 1 curStart is 8 curLength is 8 curEnd is 16 As curStart < end is fales, it can not update row data properly. Is this a bug or I missed something when range is changed? thanks. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.