Listbox and grid paging not working

asked 2018-01-29 01:59:33 +0800

ericksperandio gravatar image ericksperandio
55 5


Listbox and grid paging are not working in ZK When you try to move through the pages using either the buttons or typing the page number and hitting <enter>, the contents do not change. Likewise, when I try to assess these functionalities in ZK Demo, they are also presenting the same problem. For instance, to reproduce it, you just have to access the listbox or grid sections in the ZK Demo application, and in the Paging subsection, try to move to another page using the buttons or typing the desired page, and you'll see the problem.

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted

answered 2018-01-29 14:49:38 +0800

hawk gravatar image hawk
2210 1 5
http://hawkphoenix.blogsp... ZK Team

The demo contains a bug, so it doesn't work as expected. Thanks for reporting it.

You can run the small example below in your environment to verify paging feature:

    ListModelList model = new ListModelList(Locale.getAvailableLocales());                    
    <grid  model="${model}" mold="paging" pageSize="10" >
link publish delete flag offensive edit


The problem still happens. I'm using ZK MVVM.

ericksperandio ( 2018-01-29 22:37:34 +0800 )edit

answered 2018-01-29 14:25:17 +0800

chillworld gravatar image chillworld flag of Belgium
5257 3 9

updated 2018-01-29 14:26:40 +0800

There seems to be a problem with the live demo yes.
But also with other functionalities, seems more like the server can't process requests.
Now, the demo is ZK 8.5-eval, so not ZK But of you check the corresponding fiddle :


It all works in and 8.5.
Can you reproduce your problem in fiddle or send me your code snippet?


link publish delete flag offensive edit


The problem also happens when using ZK 8.5. I updated my Zk version to 8.5 and it kept happening.

ericksperandio ( 2018-01-29 22:37:16 +0800 )edit

answered 2018-01-29 23:08:41 +0800

ericksperandio gravatar image ericksperandio
55 5

updated 2018-01-29 23:10:44 +0800


For some reason, in the ViewModel, after updating both selectedIndex to -1 and selectedItem to null in a listbox with paging mold activated, the paging buttons do not work. Then, after forcing selectedIndex=0 and selectedItem=list.get(0), the paging buttons started to work. There seems to be a bug in listbox component. It happened either in versions and 8.5.

Thanks for hawk and chillworld for trying to help me on this, anyway.

link publish delete flag offensive edit


Then there is something wrong in the code. If you can post your zul and VM we could maybe Point it out

chillworld ( 2018-01-29 23:39:08 +0800 )edit
Your answer
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

1 follower



Asked: 2018-01-29 01:59:33 +0800

Seen: 20 times

Last updated: Jan 29