GWT CELLTABLE :How to avoid RPC call in AsycDataProvider when I click on prev button.

53 views
Skip to first unread message

vaibhav bhalke

unread,
Aug 17, 2011, 1:48:09 AM8/17/11
to google-we...@googlegroups.com
Hi,

GWT CELLTABLE :How to avoid RPC call in AsycDataProvider when I click on prev button.

I am using AsyncDataProvider to fetch data from server to celltable page.

 Each time when i click next button i am getting next 100 records from the server. And it is displaying the data fine. No issues with next button.

When i click prev button, i am assuming that cellTable had stored the previously displayed data, and just want to display that existing data.

How to handle this case without making RPC ?

ListDataProvider storing previously displayed data(previously added data in dataProviderList )

Same way How we can handle in AsyncDataProvider ?


--
Best Regards,
Vaibhav Bhalke






BST

unread,
Aug 17, 2011, 6:05:48 AM8/17/11
to google-we...@googlegroups.com
You have to append the data you get (the 100 rows )to a list or a data store of your choice. I can't think of another way. It would be easier if you put that list or your custom datastore inside the AsyncDataProvider. Basically the idea is caching the rows you are getting from the server.
Reply all
Reply to author
Forward
0 new messages