0

Listbox and grid paging not working

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

ericksperandio gravatar image ericksperandio
55 5

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.

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
1

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

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

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 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.

link publish delete flag offensive edit

Comments

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
2

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

hawk gravatar image hawk
3250 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:

<zk>
    <zscript><![CDATA[
    ListModelList model = new ListModelList(Locale.getAvailableLocales());                    
    ]]></zscript>
    <grid  model="${model}" mold="paging" pageSize="10" >
    </grid>
</zk>
link publish delete flag offensive edit

Comments

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

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

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

ericksperandio gravatar image ericksperandio
55 5

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

Hi,

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.

link publish delete flag offensive edit

Comments

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

Follow
1 follower

RSS

Stats

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

Seen: 31 times

Last updated: Jan 29 '18

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