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:RadToolTip
ID
=
"RadToolTip1"
runat
"server"
TargetControlID
"AsyncUpload1"
>
telerik:RadProgressManager
"RadProgressManager1"
/>
telerik:RadProgressArea
"RadProgressArea1"
</
telerik:RadAsyncUpload
MultipleFileSelection
"Automatic"
asp:Button
"Button1"
OnClick
"Button1_Click"
protected
void
Button1_Click(
object
sender, EventArgs e)
{
UpdateProgressContext();
}
private
UpdateProgressContext()
const
int
total = 100;
RadProgressContext progress = RadProgressContext.Current;
progress.Speed =
"N/A"
;
for
(
i = 0; i < total; i++)
progress.PrimaryTotal = 1;
progress.PrimaryValue = 1;
progress.PrimaryPercent = 100;
progress.SecondaryTotal = total;
progress.SecondaryValue = i;
progress.SecondaryPercent = i;
progress.CurrentOperationText =
"Step "
+ i.ToString();
if
(!Response.IsClientConnected)
//Cancel button was clicked or the browser was closed, so stop processing
break
progress.TimeEstimated = (total - i) * 100;
//Stall the current thread for 0.1 seconds
System.Threading.Thread.Sleep(100);