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

current item on the server side

1 Answer 30 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Matt Jones
Top achievements
Rank 1
Matt Jones asked on 29 Jul 2010, 12:56 PM
Hi,

I'd need to know which item is currently shown in the RadRotator so I implemented an AjaxRequest called from the OnClientItemShown event that calls the server and stores the currently shown item there. This itself works just fine.

<telerik:RadAjaxManager ID="ComponentSelectionPanel" runat="server" OnAjaxRequest="ComponentSelectionPanel_AjaxRequest"><br><AjaxSettings><br><telerik:AjaxSetting AjaxControlID="ComponentSelectionPanel"><br><UpdatedControls><br><telerik:AjaxUpdatedControl ControlID="ComponentSelectionPanel" /><br></UpdatedControls><br></telerik:AjaxSetting><br></AjaxSettings><br></telerik:RadAjaxManager><br>

function OnClientItemShown(sender, arg)<br>{<br><br>         $find("<%=ComponentSelectionPanel.ClientID%>").ajaxRequest(componentID);<br>}<br>

However, when user clicks on anything (say on an <a href=...>) on the page too early after recent Rotator scrolling (thus my AjaxRequest is still in progress) then the following error appears:

"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0"

Is there a way how to either hide/stop this error message, or to pass the information about currently shown Rotator item to the server in another way that doesn't interfere with too fast users? The AjaxLoadingPanel is a logical choice but would completely destroy the user experience of smooth RadRotator scrolling, I am afraid. I need the AjaxRequest to be completely running in background not bothering the user.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 03 Aug 2010, 12:19 PM
Hi Matt,

The AJAX solution is not the most appropriate one in your scenario. In your case I recommend you to use one of these two alternatives:

I hope this helps.

Greetings,
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
Tags
Rotator
Asked by
Matt Jones
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or