Re: CellTable - Synchronization problem with AsyncDataProvider
Hello,
I found this interesting article:
It also states that one should always update both row count and row data. But when looking to the code in the article, it seems that the author assumes that AsyncDataProvider.updateRowCount expects the number of *visible* rows. My understanding is that it expects the number of *total* rows. Is this correct?
However, I cannot call both at the same time with the exact values. I have to make two different RPC calls, one for the data in onRangeChanged, and one to fetch the total record count.
As I posted before, I call updateRowCount(0) on reload, just to be sure that old rows disappear. Later, when the RPC call for the row count returns, I call updateRowCount with the exact number.
Unfortunately the old rows still remain visible after reload...
Magnus
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/N1_-jnTTfmAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home