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

Changing Status during RadAjaxLoadingPanel in process

3 Answers 48 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
JD.
Top achievements
Rank 1
JD. asked on 24 Sep 2011, 05:05 PM

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

3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 28 Sep 2011, 08:31 AM
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
0
Luca
Top achievements
Rank 1
answered on 24 Oct 2012, 10:12 AM
I have the same problem, how did you solve your problem?? I have to cange method?
0
Vasil
Telerik team
answered on 26 Oct 2012, 12:33 PM
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.
Tags
Ajax
Asked by
JD.
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Luca
Top achievements
Rank 1
Vasil
Telerik team
Share this question
or