0

I have a paginated cellTable , how can I reload the paginated cellTable and target it to a specific page? For example, I am viewing page 5, I click the reload button and give pageNo = 5 as a argument and after loading the pagination cellTable are still on page 5.

Olimpiu POP
  • 5,001
  • 4
  • 34
  • 49
gui
  • 35
  • 6
  • I'm not sure how you created the table and reload it but table.setVisibleRange(pagesize*(pageNo-1), pageSize) may be work – aki miyazaki Feb 17 '14 at 09:49
  • Hi,i realized that when i was in the second page with pageSize 10 and i have 8 records in the second page , even though i setVisibleRange(10, 17), but it still show me 10 record with extra 2 records having null value – gui Feb 21 '14 at 03:40
  • thanks,response.maybe setPage(5) is better way. – aki miyazaki Feb 23 '14 at 12:16
  • Yes , it's better to setPage(5) in the server response, thanks – gui Feb 24 '14 at 01:29

1 Answers1

1

If you use an AsyncDataProvider and a SimplePager, you can simply:

pager.setPage(5);
Andrei Volgin
  • 40,755
  • 6
  • 49
  • 58