Call Ajax Swirl

5 posts, 0 answers
  1. Stacy
    Stacy avatar
    98 posts
    Member since:
    Dec 2010

    Posted 07 Jul 2014 Link to this post

    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?
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 08 Jul 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stacy
    Stacy avatar
    98 posts
    Member since:
    Dec 2010

    Posted 09 Jul 2014 in reply to Marin Bratanov Link to this post

    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
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 10 Jul 2014 Link to this post

    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.

     
  6. Stacy
    Stacy avatar
    98 posts
    Member since:
    Dec 2010

    Posted 16 Sep 2014 in reply to Marin Bratanov Link to this post

    How about if I'm clicking on a RadMenu or ToolBarButton to open a popup, can an ajax swirl appear using that scenario?
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017