Welcome Guest Search | Active Topics | Sign In | Register

Slide Selection Options
Ccolse
Posted: Monday, November 29, 2010 9:51:28 AM
Rank: Newbie
Groups: Member

Joined: 11/29/2010
Posts: 7
i have a slide with n options. Every time i choose an option, it redirects to a new page, so i can continue with this product.
But, i can't get an identifier of the option choosed, like a parameter passed between pages, with the selection.

My code:

<eo:Slide ID="Slide_" runat="server" BigItemHeight="388"
BigItemPanelStyle="slide_big_item_panel" BigItemWidth="654" Font-Names="Tahoma"
Font-Size="7pt"
IEEffect="progid:DXImageTransform.Microsoft.Fade(duration=0.3,overlap=0.3)"
Interval="2000" ItemNumberStyle="slide_item_number"
NavPanelStyle="slide_nav_panel" SmallItemHeight="91"
SmallItemHoverStyle="slide_small_item_hover"
SmallItemPanelStyle="slide_small_item_panel" SmallItemStyle="slide_small_item"
SmallItemWidth="95" VisibleSmallItemCount="7" AutoPostBack="True">
<BigItemTemplate>
<div>
<img src='<%#ResolveUrl(Eval("image").ToString())%>' alt="" />
</div>
<div style="padding: 5px 5px 0px 5px; background-color:White;">
<p style="font-family: Arial; font-size: 17px; color: #16387c; font-weight: bold">
<%#Eval("title")%>
</p>
<p style="font-family: Arial; font-size: 13px; color: #333">
<%#Eval("summary")%>
</p>
</div>
</BigItemTemplate>
<SmallItemTemplate>
<div style="padding: 15px 3px 3px 3px; text-align: center">
<div style="border: solid 1px #c5ced7; padding: 2px; background-color:White; width:80px;">
<img src='<%#ResolveUrl(Eval("thumbnail").ToString())%>' alt=""/>
</div>
<p>
<a href="Pizzas.aspx"><%#Eval("link_text")%></a>
</p>
</div>
</SmallItemTemplate>
</eo:Slide>

My idea, dinamically do that: <a href="Pizzas.aspx?piz=1"><%#Eval("link_text")%></a>
Is there an method (html, javascript, vb code) to do that?

I see no code events, like slide_click, or slide_press, that would be the easy way
In control properties, i see no Javascripts function like ClientSideOnItemClick or something like that


thanks in advance...
eo_support
Posted: Monday, November 29, 2010 10:28:25 AM
Rank: Administration
Groups: Administration

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

I am not exactly sure whether you meant "click" event or "scroll" event. The slide offers "scroll" event on both server side and client side. Scroll event occurs when you click the arrow button to switch the slide from one item to another item:

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

If this is not what you meant, then I assume you meant a "click" event on the item. There is no such event on the Slide control because the item is a template and any event would be handled inside your template. For example, you can put a standard asp:Button inside the template and handle click event on that button.

As dynamically creating the link, you will be using data binding expression and your code is already correct. Is it not working for you?

Thanks!
Ccolse
Posted: Monday, November 29, 2010 11:23:58 AM
Rank: Newbie
Groups: Member

Joined: 11/29/2010
Posts: 7
Efectively, the solution is put a linkbutton below the thumbnail in smallitems section, and already got a click event, and i can differentiate every component of slide
Thank you so much!
eo_support
Posted: Monday, November 29, 2010 11:40:34 AM
Rank: Administration
Groups: Administration

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

You just do it the same way with data binding expression as you do with any other template based controls. The key is it's a template, so basically whatever you do inside the template has nothing to do with what's outside. Thus there is not going to be anything on the Slide (outside of the template) that will help with your event (inside the template). When you are looking for your solution the Slide control, you are looking at the wrong place.

In your case, try to think that you want to differentiate different record in your data source, not to differentiate every component of the slide because it really has nothing to do with the slide.

Thanks!


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.