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