OK, this seems to work for now. I added the following code to my
asyncdataprovider class:
public void refresh() {
for(HasData<NewsFeed> display : this.getDataDisplays()) {
onRangeChanged(display);
}
}
It reloads data from teh server each time but it's not a big issue.
On Thursday, 12 July 2012 17:40:23 UTC+2, Thomas Lefort wrote:
>
> I am looking for advice.
>
> I display potentially a large amount of data available on my server in a
> cell table using the asyncdataprovider.
>
> I can edit the data items in the list or add new items to the list. My
> problem is what is the best way to update the list once I have created a
> new item or edited one? shall I create a refresh method that calls the
> onRnageChanged method to force a refresh?
>
> Thanks,
>
> Thomas
>
>
--
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/-/jU9etEz_UyUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.