How to get current scrollTop property

asked 2008-06-17 08:49:46 +0800

admin gravatar image admin
18691 1 10 129
ZK Team

Orignial message at:

By: troum


There is a list box with dynamically added list items. Need to correct scroll position after item added. In other words, need to scroll 100px down (for example).
But Listbox.smartUpdate() method operates with absolute scrollTop position.
How can I get current scrollTop value after list items dynamically added?


delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-06-18 00:54:10 +0800

admin gravatar image admin
18691 1 10 129
ZK Team

Orignial message at:

By: robbiecheng

Try Clients.scrollBy(int x, int y)
to scroll the current desktop (aka., browser window) by the specified number of pixels.

You can ignore the absolute scrollTop.


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




Asked: 2008-06-17 08:49:46 +0800

Seen: 254 times

Last updated: Jun 18 '08

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