Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

SmartGWT.mobile: Paged Tableview

$
0
0
How do you load the next data page of a paged TableView? I guess, this has to be quite easy... but i just can't figure it out...

Code:

RecordList recordList = new RecordList();
// add 20 records now

TableView tv = new TableView();
tv.setDataFetchMode(FetchMode.PAGED);
tv.setDataPageSize(10);
tv.setData(recordList);

When i add the TableView, the 1st data page (containing records 1 - 10) is shown.
But how can i switch to the 2nd data page (containing records 11 to 20) now?
Thanks a lot in advance!

Viewing all articles
Browse latest Browse all 4756

Trending Articles