0

Sliders

asked 2006-02-09 23:47:50 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3568359

By: n8dawgrr

Hi All,

If I can start by saying ZK rocks!. I've been looking for exactly this solution for ages. The ZK approach is definately the right way forward. Build your gui with XML. I'm interested in increasing the richness of some of the components, for instance: the slider. It would be nice to have a text entry box to enter in the value by hand. You could also see the current value of the slider as you move the slider. I've tried a few apporaches, eg using the onSlide(), but no joy so far. This would have to be done client side of course, a server round trip would kill the performance. Can this be done with the existing framework.
Sorry if the question is dumb. I'm new to ZK.

Regards,

Nathan

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2006-02-10 01:08:03 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3568473

By: tomyeh

Hi Nathan,

Glad to know that you like ZK.

To implement the feature you mentioned, you have to listen the onScroll (or
onScrolling) event at the server side. It indeed causes a round-trip.

To have a pure client solution, you have to extend the slider component. It is welcome. Unfortunately, there is no much document yet. Besides reading http://zk1.sourceforge.net/smalltalks/fckez/fckez.html , please read the source codes (sld.js in zul).

Hope our resouces are available sooner to have the component development guide ready.

--
tom / zk

link publish delete flag offensive edit

answered 2006-05-17 04:19:13 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3736309

By: gladiator

what does pageIncrement for slider do? according to the doc:
setPageIncrement(int pginc)
Sets the amount that the value of getCurpos() changes by when the tray of the scroll bar is clicked.
but the slider doesn't change its position at all when I click on it. and when I move the knot, the position doesn't increment by pginc either. So I am not sure what setPageIncrement does.



link publish delete flag offensive edit

answered 2006-05-17 04:24:34 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3736316

By: gladiator

also it is possible to orient the slider vertically?
thanks!

link publish delete flag offensive edit

answered 2006-05-17 04:44:53 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3736329

By: henrichen

That pageIncrement property is for future use. It is not implemented yet. :)

The intented function is exactly what the doc said. "click on the tray to change the curpos of the slider".

If you need this, please post to Feature Request, so we can track it.

/henri


link publish delete flag offensive edit

answered 2006-05-17 04:46:18 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3736332

By: henrichen

"also it is possible to orient the slider vertically? "

Please post to Feature-Request, so we can track it.

/henri

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

Follow

RSS

Stats

Asked: 2006-02-09 23:47:50 +0800

Seen: 579 times

Last updated: May 17 '06

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