Welcome Guest Search | Active Topics | Sign In | Register

Slide - set VisibleItemCount dynamically from js Options
mitica
Posted: Friday, February 18, 2011 7:26:42 AM
Rank: Newbie
Groups: Member

Joined: 2/18/2011
Posts: 6
Hi,

is it possible to dynamically set the size (width) and the VisibleItemCount (small items) after the slide control has loaded? (from javascript - client size)

I want to force the slide to display variable number of thumbnails depending on the with of the parent div.

Thank you.
eo_support
Posted: Friday, February 18, 2011 7:55:10 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I do not believe you can do that in the current version. That's an interesting idea though. We will look into it and see if we can add it.

Thanks!
mitica
Posted: Friday, February 18, 2011 8:16:46 AM
Rank: Newbie
Groups: Member

Joined: 2/18/2011
Posts: 6
Oau,

this was really a fast answer. Amazing support.
In this situation I do have another question in order to work-arround this situation:
- can the prev-next buttons be repositioned on the left side of the control? (now they are aligned on the far right side).

This is in order to let the user scroll the control even when the browser window is to small to host the entire Slide Control, making the right-aligned prev/next buttons not accessible.

Thank you again for your fast reply.
eo_support
Posted: Friday, February 18, 2011 9:12:01 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Yes. You can do that. You can take a look of this sample:

http://demo.essentialobjects.com/Demos/Slide/Client%20Side%20API/Demo.aspx

Even though the scroll buttons are still on the right side of the control, but there are actually NOT a part of the Slide control, so you can move it to anywhere. Those are regular HTML links that calls our Slide control's client side JavaScript interface to scroll the slide.

You can take a look of the sample source code to see how it works. Please feel free to let us know if you still have any questions.

Thanks!
mitica
Posted: Sunday, February 20, 2011 2:46:48 AM
Rank: Newbie
Groups: Member

Joined: 2/18/2011
Posts: 6
Thank you very much.
What you suggested really did the trick.
If, in the future, the client side will be extended to offer some more flexibility it will be great.

Great controls.

Thank you.
eo_support
Posted: Sunday, February 20, 2011 7:24:41 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Glad that it works for you. Thank you very much for your feedback!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.