-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
Listbox and grid paging are not working in ZK 8.0.1.1. 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.
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:
<zk>
<zscript><![CDATA[
ListModelList model = new ListModelList(Locale.getAvailableLocales());
]]></zscript>
<grid model="${model}" mold="paging" pageSize="10" >
</grid>
</zk>
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 8.0.1.1
But of you check the corresponding fiddle :
http://zkfiddle.org/sample/2um2qbq/1-Listbox-paging-Solve
It all works in 8.0.1.1 and 8.5.
Can you reproduce your problem in fiddle or send me your code snippet?
Chill.
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 )editHi,
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 8.0.1.1 and 8.5.
Thanks for hawk and chillworld for trying to help me on this, anyway.
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 )editAsked: 2018-01-29 01:59:33 +0800
Seen: 30 times
Last updated: Jan 29 '18