Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Beta Forum > RadAjaxManager preventing multiple simultaneous ajax calls

Not answered RadAjaxManager preventing multiple simultaneous ajax calls

Feed from this thread
  • Travis Johnson avatar

    Posted on Mar 9, 2011 (permalink)

    I have been using this code forever it has always worked until this beta release.

    var AjaxIsActive = false;
      
    function RequestStart(ajaxControl, eventArgs) {
        if (AjaxIsActive) {
            alert("Please Wait - Page update in progress");
            eventArgs.set_cancel(true); // I added this in hoping it would help, it didn't
            return false;
        }
        AjaxIsActive = true;
    }
       
    function ResponseEnd(ajaxControl, eventArgs) {
        AjaxIsActive = false;
    }


    Also I added the RequestQueueSize="1" property to the RadAjaxManager - it didn't help

    <telerik:RadAjaxManager ID="ramMain" runat="server" RequestQueueSize="1">


    This code used to work flawlessly preventing multiple ajax calls at one time.

    Thanks

    Trav

    Reply

  • Iana Tsolova Iana Tsolova admin's avatar

    Posted on Mar 11, 2011 (permalink)

    Hello Travis,

    I tested your code in the attached sample however it works fine on my side. Can you try it out and let me know how it goes on your end and what differs in your case?

    Best wishes,
    Iana
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

    Reply

  • Travis Johnson avatar

    Posted on Mar 11, 2011 (permalink)

    I tried your example. I can click button1 or button2 over and over and as fast as I can and the javascript alert never pops up. If I were to do this on my production site the alert would be immediate.

    Reply

  • Travis Johnson avatar

    Posted on Mar 11, 2011 (permalink)

    It could be that the ajax call is being ignored however I need my alert to show up to tell the user what is going on.

    Reply

  • Iana Tsolova Iana Tsolova admin's avatar

    Posted on Mar 14, 2011 (permalink)

    Hi Travis,

    Does this happend in all browsers? And does it make any difference if the RadAjaxManager RequestQueueSize property is set to 2 (two)?

    Best wishes,
    Iana
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

    Reply

  • Travis Johnson avatar

    Posted on Mar 14, 2011 (permalink)

    After removing the RequestQueueSize="1" or "2" from your example it now seems to be working the way it did before.

    Is the Telerik.Web.UI.dll you put in the project a newer version than the beta with a bug fix in it?

    I noticed this project was for .net 4.0 I am using 3.5. I replicated the example for 3.5 and it is working the same way so that is good.

    Trav

    Reply

  • Iana Tsolova Iana Tsolova admin's avatar

    Posted on Mar 15, 2011 (permalink)

    Hello Travis,

    The version of RadControls for ASP.NET AJAX I was using in the sample is Q1 2011 Beta. However, we have not made any changes that can affect RadAjax behavior in such a manner since he version you are using. But I would still suggest that you wait for the official release of Q1 2011 and upgrade to it.

    Regards,
    Iana
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Beta Forum > RadAjaxManager preventing multiple simultaneous ajax calls