3

onScroll event of Listbox

asked 2014-02-10 13:37:47 +0800

enixser gravatar image enixser
185 3

I want to detect when a user scrolls to bottom of a listbox. My idea was to add an event listener to the listbox that handles the onScroll event:

ZkListbox test = new ZkListbox();
test.addEventListener(Events.ON_SCROLL, new EventListener<ScrollEvent>() {
    public void onEvent (ScrollEvent event) {
        System.out.println("Test");
    }
});

But unfortunately the event listener is never called when I scroll the listbox. Is the onScroll event supported by listbox?

Regards, Ralf.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-02-10 13:43:56 +0800

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

updated 2014-02-10 20:54:42 +0800

When you see here :

listbox supported events
XulElement supported events
HtmlBasecomponent supported events

you will notice that onScroll is not supported for listbox.

edit: BigListbox(only zk EE) supports onscroll, other coded workarounds fails atm.

greetz chill.

link publish delete flag offensive edit

Comments

Thanks for the hint. Is there any workaround for this?

enixser ( 2014-02-10 13:47:51 +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: 2014-02-10 13:37:47 +0800

Seen: 31 times

Last updated: Feb 10 '14

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