0

Loop on zk listbox with pagination

asked 2021-09-27 16:01:20 +0800

lperez gravatar image lperez
1

Good morning, we have a problem in our application with a blink in the listbox.

The case is as follows: We have an auto-pagination listbox.

Each page shows n rows (the size of the list is adjusted to that of the window). When there are n + 1 rows in the list, the application enters a loop like that: 1.- it generates the pagination. 2.- it sees that there is only 1 element on page 2 3.- it tries to put it on page 1 eliminating the pagination 4.- it does not fit, it generates the pagination again

Any ideas on how to remove said loop?

Our version of ZK is 8.05.

All the best.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2021-09-28 16:38:42 +0800

cor3000 gravatar image cor3000
6168 2 7
ZK Team

Usually that kind of feedback loop happens when autopaging is enabled AND the listitems have a varying height.

So your listitems all need the same height - otherwise there is no way to calculate the number of pages required (if there were it would mean to prerender all rows, which is in direct contradiction to paging).

If you still encounter this kind of loop, with a static height for each row please provide a reproducing example here or contact our support if you can't share the code in public.

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: 2021-09-27 16:01:20 +0800

Seen: 4 times

Last updated: Sep 28

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