Onclick on SlideShowButtons

3 posts, 0 answers
  1. Susanna
    Susanna avatar
    7 posts
    Member since:
    Jun 2012

    Posted 01 Jul 2010 Link to this post

    Hi.

    I have a rotator with one picture showing at a time.
    How do I know which item is displayed in the rotator in my saveevent?

    The user will not click on the displayed images only on the slideshowbuttons.
    When a user clicks on the slideshowbutton I want to save the id for my imagedisplayed.
    Is this possible? How?

    Thank you.
    //Ylva


  2. Susanna
    Susanna avatar
    7 posts
    Member since:
    Jun 2012

    Posted 01 Jul 2010 Link to this post

    Hi again.

    Can I set the OnItemClicked-event from code behind because I'm creating the rotator dynamically.

    Best regards.
    //Y
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 01 Jul 2010 Link to this post

    Hello Carl,

    You can attach a handler to the ItemClick event of the RadRotator control using this code:

    C#:
    protected void Page_Load(object sender, EventArgs e)
    {
        RadRotator1.ItemClick += new RadRotatorEventHandler(RadRotator1_ItemClick);
    }
    void RadRotator1_ItemClick(object sender, RadRotatorEventArgs e)
    {
    }

    VB.NET:
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        AddHandler RadRotator1.ItemClick, AddressOf RadRotator1_ItemClick
    End Sub
     
    Protected Sub RadRotator1_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadRotatorEventArgs)
     
    End Sub


    All the best,
    Fiko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top