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

Call Ajax Swirl

4 Answers 61 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Stacy
Top achievements
Rank 1
Stacy asked on 07 Jul 2014, 01:04 PM
Is there a way to make the ajax swirl appear via code?  In my case I have a "main" page.  If a user selects an item from the radMenu, I'd like the ajax swirl to appear while the next page is loading, can that be done?

4 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 08 Jul 2014, 07:21 AM

Hello Stacy,

This help article shows how to do this: http://www.telerik.com/help/aspnet-ajax/ajax-show-hide-loadingpanel.html.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Stacy
Top achievements
Rank 1
answered on 09 Jul 2014, 01:15 PM
is it possible for this to be triggered from a RadMenu/RadMenuItem?  The example posted uses an asp button but I cant seem to get it to trigger when a user selects an item from the radMenu.  

In my case I have a "main" page.  If a user selects an item from the radMenu, I'd like the ajax swirl to appear while the next page is loading
0
Marin Bratanov
Telerik team
answered on 10 Jul 2014, 10:20 AM

Hi Stacy,

If you are waiting for a partial postback (e.g., to load user controls) or a webservice call to return - you can use this approach.

If, however, your menu consists of links that redirect to a completely different page, this appraoch cannot work. Once the response for the new page starts coming in the browser will dispose the old page and with it - the RadAjaxLoadingPanel.

What I can suggest is adding a simple HTML structure that will act as a loading sign to your pages and hiding it in the Sys.Application.Load event (i.e., when the page is completely loaded). Note that the earliest point at which this loading sign can show up is when enough of the response from the next page is received, so from this point, to the Sys.Application.Load event there is rarely much time.

Nevertheless, for your convenience, I am attaching here a small example of this idea. In case you decide it works for you, you can tweak to match your needs.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Stacy
Top achievements
Rank 1
answered on 16 Sep 2014, 01:26 PM
How about if I'm clicking on a RadMenu or ToolBarButton to open a popup, can an ajax swirl appear using that scenario?
Tags
Ajax
Asked by
Stacy
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Stacy
Top achievements
Rank 1
Share this question
or