Access radrotator click events for controlbuttons server-side

3 posts, 1 answers
  1. Zeyad
    Zeyad avatar
    10 posts
    Member since:
    Mar 2011

    Posted 17 Apr 2011 Link to this post

    Hello,

    I am using a RadRotator to display one item at a time. I have my own controlbuttons (using ImageButtons) to navigate the RadRotator left and right. 

    I want to perform a server-side action on my page whenever a user clicks the left or right navigation buttons. Unfortunately, the onclick event for my ImageButton is not working whenever the ImageButton is used as a controlbutton for the RadRotator. 

    How do I accomplish my scenario? 

    Thanks,
    Zeyad
  2. Answer
    Niko
    Admin
    Niko avatar
    387 posts

    Posted 18 Apr 2011 Link to this post

    Hello Zeyad,

    The RadRotator custom buttons, once attached to the control, will stop doing postbacks. This is an expected behavior as rotator buttons are required to only change the currently displayed item.
    Still you can attach to the OnClientClick event of the image buttons and within the handler initialize an Ajax request using RadAjaxManager. You can review the help articles on using this control and particularly the one with initializing custom Ajax requests - http://www.telerik.com/help/aspnet-ajax/ajax-add-ajaxrequest-to-client-event.html.

    Hope this helps.

    Greetings,
    Niko
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Zeyad
    Zeyad avatar
    10 posts
    Member since:
    Mar 2011

    Posted 18 Apr 2011 Link to this post

    Thanks so much. I got it to work based on the article. 

    Zeyad
Back to Top