We are actually trying to display a progress bar on a button click event in a user control which has radajaxmanagerproxy.We have a radajaxmanager in th epage which holds the user control.
But for no reason the RadProgressaraea is not showing up at all.
Below is the code snippet for the same
User Control with RadAjaxmanagerProxy
----------------------------------------------------
<telerik:radajaxmanagerproxy id="radAjaxMgrQCMapping" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="btnMap">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="radProgressManager1" LoadingPanelID="radAjaxLoadPnlUnmappedItems"/>
<telerik:AjaxUpdatedControl ControlID="radProgressArea1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:radajaxmanagerproxy>
<
telerik:RadProgressManager id="radProgressManager1" runat="server" RefreshPeriod="5" />
<telerik:RadProgressArea id="radProgressArea1" runat="server" DisplayCancelButton="False"
ProgressIndicators="TimeElapsed">
</telerik:RadProgressArea>
CodeBehind file:
--------------------------
public
void UpdateProgressContext(StringBuilder projectStatus)
{
RadProgressContext context = RadProgressContext.Current;
context.SecondaryTotal = 100;
for (int i = 1; i < 100; i++)
{
context.SecondaryValue = i;
context.SecondaryPercent = i;
context.CurrentOperationText = projectStatus;
if (!Response.IsClientConnected)
{
//Cancel button was clicked or the browser was closed, so stop processing
break;
}
// simulate a long time performing the current step
Thread.Sleep(100);
}
}
Could you please provid eus a solution tio implement this functionality.
Thanks and Regards
V.Balamurali