Ajax Loading Panel Question

3 posts, 0 answers
  1. JDT
    JDT avatar
    45 posts
    Member since:
    Jul 2007

    Posted 10 Jun 2009 Link to this post

    Hi All,

    The asp.net ajax controls documentation has a great example of how to show a loading panel on initial page load. What would we have to do to have some text under the animated gif changing based on some server side work?

    So it would look like.
    Loading frames...

    Adding Layers...

    and finally showing the page.

    Something like
     protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
                if (e.Argument == "InitialPageLoad")
      //simulate longer page load
                    Label lbl = (Label)RadAjaxLoadingPanel1.FindControl("labelLoading");
                    lbl.Text = "Adding Layers...";
                    Panel2.Visible = true;

    Is there a way to have the server send the new label text back to the client and have it refreshed? It looks like one can either poll from the client, or push from the server (reverse ajax) what's the Telerik way to accomplishing this?

  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 16 Jun 2009 Link to this post

    Hello JDT,

    I am afraid that you cannot change the RadAjaxLoadingPanel message during the ajax request, neither client side or server side. Note that the Label text would change only once, after the request finishes. The easiest way to achieve your goal is to add an animated image in the loading panel which displays the desired text.

    I hope this helps.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. JDT
    JDT avatar
    45 posts
    Member since:
    Jul 2007

    Posted 17 Jun 2009 Link to this post

    Didn't think of that. Thanks for the tip!
Back to Top