0

Can I make the paging PageSize be dynamic ?

asked 2013-12-13 07:58:33 +0800

tnharisman gravatar image tnharisman
31 3

please help, I have tried to find about how to change the paging PageSize dynamically included in this forum, but I do not find. Any one help me? I try paging sample attachments, thnks :D https://lh4.googleusercontent.com/Ulgv5SlFSEJIExTbV3_xaZ-iiwLpYmRPY-W54-u0lQ=w912-h91 (image description)

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2013-12-18 19:03:13 +0800

windeyu gravatar image windeyu flag of United States
288 3

updated 2013-12-18 19:04:05 +0800

Not sure how your UI structure looks like, but I have a Listbox and a Paging. I dynamically set the PageSize too. My code looks like this

Paging _paging = new Paging();
_paging.setPageSize(pageSize);  // where pageSize is what you decide
int totalCount = listModelList.getTotalCount();
_paging.setTotalSize(totalCount);
link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-12-13 07:58:33 +0800

Seen: 16 times

Last updated: Dec 18 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More