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

Display RadAjaxLoadingPanel using Javascript

3 Answers 676 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Arthur
Top achievements
Rank 2
Arthur asked on 05 Feb 2009, 02:48 PM
Hi,

   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!


Regards,
Arthur

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 09 Feb 2009, 03:22 PM
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,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sharmin
Top achievements
Rank 1
answered on 10 Jul 2013, 03:18 PM
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.

Thanks,
Sharmin
0
Maria Ilieva
Telerik team
answered on 15 Jul 2013, 12:21 PM
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.

Regards,
Maria Ilieva
Telerik
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.
Tags
Ajax
Asked by
Arthur
Top achievements
Rank 2
Answers by
Nikolay Rusev
Telerik team
Sharmin
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or