Changing Status during RadAjaxLoadingPanel in process

4 posts, 0 answers
  1. JD.
    JD. avatar
    37 posts
    Member since:
    Aug 2012

    Posted 24 Sep 2011 Link to this post

    I have following code. 

    1.  What I want to achieve is, to keep updating label2 as program statements proceeds eg.  "Loading,.... ", "Connecting....."
    "Applying Changes......"   "Done..".   The Idea is to keep user inform about the current status , when processing takes longer time.

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Telerik" >
    <asp:Label ID="Label2" runat="server" ForeColor="Red">Loading... </asp:Label>
    <asp:Image ID="Image1" runat="server" Width="224px" Height="48px" ImageUrl="~/Loading.gif">
    </asp:Image>
    </telerik:RadAjaxLoadingPanel>

    Following is my code behind.

    protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
         {
             Label2.Text = "Connecting to Source";
      .........  Long code to retrieve data from DB into UC datasource.
             RadGrid1.DataSource = uc;
             Label2.Text = "Apply Results.";
         }


    But this does not seem to work...... Is there a better workarond ?


    -JD

  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 28 Sep 2011 Link to this post

    Hi J.,

    This cannot be achieved with ajax as in this case the controls are updated on the client only once, after the ajax request finishes.

    Kind regards,
    Iana Tsolova
    the Telerik team
    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 their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Luca
    Luca avatar
    2 posts
    Member since:
    Jan 2009

    Posted 24 Oct 2012 Link to this post

    I have the same problem, how did you solve your problem?? I have to cange method?
  5. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 26 Oct 2012 Link to this post

    Hi Luca,

    This can be interesting and helpful for you:
    http://stackoverflow.com/questions/2887193/making-a-concurrent-ajax-wcf-web-service-request-during-an-async-postback

    Regards,
    Vasil
    the Telerik team
    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 their blog feed now.
Back to Top