current item on the server side

2 posts, 0 answers
  1. Matt Jones
    Matt Jones avatar
    17 posts
    Member since:
    Mar 2007

    Posted 29 Jul 2010 Link to this post

    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!
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 03 Aug 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top