Hi,
I am using GWT 2.3 cellTable to display the data using SimplePager.
And i am following the example
AsyncDataProvider as it is...
http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html
AsyncDataProvider provider = new AsyncDataProvider() {
@Override
protected void onRangeChanged(HasData display) {
// Here i am doing rpc call to get the data
using cursors... and its working fine.
updateRowData(start, data);
}
};
But each time when i click
next button i am getting next 20 values from the data store using cursor. And it is displaying the data fine. No issues with next button.
But when i click
prev button, i am assuming that cellTable had stored the previously displayed data, and just want to display that existing data, and
handle this case without making RPC ?? but here when i click on prev button, progress bar is being displayed... what is that wrong here ??
(
DOUBT:
on click of prev button: what is the need of call to the server to get the duplicate data again ??)
is their any other way to handle this case ?? Please any suggestions ??
Thanks in advance
--
Santosh Kumar K