Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
telerik:RadProgressManager
ID
=
"RadProgressManager1"
runat
"server"
OnClientProgressStarted
"OnClientProgressStartedHandler"
/>
asp:Panel
"panel1"
>
telerik:RadProgressArea
"RadProgressArea1"
Skin
"Vista"
</
><%--TargetFolder="~/uploads" --%>
telerik:RadUpload
"RadUpload1"
asp:Button
"Button1"
Text
"Button"
OnClick
"Button1_Click"
/> <
br
ajaxToolKit:ModalPopupExtender
"ModalPopupExtender1"
TargetControlID
"hiddenTargetControlForModalPopup"
BackgroundCssClass
"myClass"
PopupControlID
Style
"display: none"
<script type=
"text/javascript"
function
OnClientProgressStartedHandler(sender, e)
{
var
modalPopupBehavior = $find(
'ModalPopupExtender1'
);
modalPopupBehavior.show();
}
</script>
protected
void
Button1_Click(
object
sender, EventArgs e)
RadProgressContext context = RadProgressContext.Current;
context.SecondaryTotal =
"100"
;
for
(
int
i = 1; i < 100; i++)
context.SecondaryValue = i.ToString();
context.SecondaryPercent = i.ToString();
context.CurrentOperationText =
"Doing step "
+ i.ToString();
if
(!Response.IsClientConnected)
//Cancel button was clicked or the browser was closed, so stop processing
break
// simulate a long time performing the current step
System.Threading.Thread.Sleep(100);