Thursday, November 22, 2012

Re: CellTable - How to temporarily bypass AsyncDataProvider?

Hi Matthew,

you're right, this must be the way to do it.

At the moment, data from the server is pushed into the CellTable by calling AsyncDataProvider.updateRowData.
The problem is that I don't know exactly what it does. The docs only say "Inform the displays of the new data." But I have not seen the concept of these "displays" somewhere.

I also don't know exactly how to tell within the body of the data provider's onRangeChanged method which rows (indices) are the new ones.

In addition: What about the page size? When appending new rows the page size may be exceeded. What should we do in this case? Increase the starting position of the current page?
Remember, it's a chat. It would  be ok if the page size stays constant and the first row disappears when a new row is appended...

A code skeleton would be fine...

Magnus
 


Am Mittwoch, 21. November 2012 18:44:08 UTC+1 schrieb Matthew Dempsky:
On Wed, Nov 21, 2012 at 8:37 AM, Magnus <alpine...@googlemail.com> wrote:
maybe it's not a good idea to "bypass" the AsyncDataProvider, as proposed above.

What about modifying your AsyncDataProvider to allow the client-side to stuff new data in directly?

--
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/-/04GHQBJx0sQJ.
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.

No comments:

Post a Comment