This is a migrated thread and some comments may be shown as answers.

Access radrotator click events for controlbuttons server-side

2 Answers 77 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Zeyad
Top achievements
Rank 1
Zeyad asked on 17 Apr 2011, 06:18 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Niko
Telerik team
answered on 18 Apr 2011, 09:37 AM
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.

0
Zeyad
Top achievements
Rank 1
answered on 19 Apr 2011, 04:27 AM
Thanks so much. I got it to work based on the article. 

Zeyad
Tags
Rotator
Asked by
Zeyad
Top achievements
Rank 1
Answers by
Niko
Telerik team
Zeyad
Top achievements
Rank 1
Share this question
or