Display RadAjaxLoadingPanel using Javascript

4 posts, 0 answers
  1. Arthur
    Arthur avatar
    30 posts
    Member since:
    Apr 2008

    Posted 05 Feb 2009 Link to this post


       Is it possible to display the RadAjaxLoadingPanel over a RadAjaxPanel (or ASP Panel) using javascript even if you won't have any server event?
       Say, I have several user controls that I load within RadTabStrip. Each user control has their own javascript function that kicks a webservice call. What I want to accomplish is, the moment the javascript initiates the webservice call until the webservice returns a result, I want to display the RadAjaxPanel so the user will know that the transaction is being executed. At the same time, they won't be able to click on anything inside the tab until the webservice returns and prompt that the transaction was successfully completed. Is the use of RadAjaxLoadingPanel possible fo this scenario? Or is there any work around that we can do for this?

    Thanks in advance!

  2. Nikolay Rusev
    Nikolay Rusev avatar
    2289 posts

    Posted 09 Feb 2009 Link to this post

    Hello Arthur,

    You can use the approach suggest in the following demo:
    Show and hide loading panel explicitly

    This is how you can control when to show/hide RadAjaxLoadingPanel.

    All the best,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Sharmin
    Sharmin avatar
    8 posts
    Member since:
    May 2012

    Posted 10 Jul 2013 Link to this post

    Hi Nikolev,

    Is there any way to invoke the Ajax Loading Panel without the sender, args and from the plain javascript?
    I mean, I have a section of the page which uses server side code and another section which uses JQuery to do something else. I wish if I could use the same Loading Panel for both.

  4. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 15 Jul 2013 Link to this post

    Hello Sharmin,

    You could still use the client show() and hide() methods for the showing and hiding the RadAjaxLoadingPanel, but without sender and args to take the eventTarget you should show it unconditionally or with custom conditions as per your needs.

    Maria Ilieva
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top