Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

Upload / Monitoring Custom Progress

Press the submit button in order to start monitoring custom progress

  • Total Progress % ( ) Total
  • Progress % ()
  • Custom progress in action:
  • Elapsed time:  Estimated time:  Speed:







  • Monitoring Custom Progress

    RadProgressArea is designed to provide the ability to monitor the progress of any measurable process.

    In order to monitor a custom progress you need to put a RadProgressArea and RadProgressManager on your page.

    Then using the RadProgressContext class you send the progress couters to RadProgressManager

    If you want to update the elements of the default progress template you should use the following keys in the progress hashtable

    • PrimaryTotal - the maximum value of the primary progress indicators. By default RadProgressArea displays here the request size.
    • PrimaryValue - the current value of the primary progress indicators. By default RadProgressArea displays here the uploaded bytes count.
    • PrimaryPercent - the percentage of PrimaryValue from PrimaryTotal.
    • SecondaryTotal - the maximum value of the secondary progress indicators. By default RadProgressArea displays here the number of the selected files on the page.
    • SecondaryValue - the current value of the secondary progress indicators. By default RadProgressArea displays here the count of the complete uploaded files.
    • SecondaryPercent - the percentage of SecondaryValue from SecondaryTotal.
    • CurrentOperationText - the description of the current operation. By default RadProgressArea displays here the name of the currently uploaded file.
    • TimeEstimated - the estimated time until the operation completes.
    • TimeElapsed - the elapsed time from the beginning of the operation.
    • Speed - The execution speed of the process. By default RadProgressArea displays here the upload speed.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="vb" CodeFile="DefaultVB.aspx.vb" AutoEventWireup="true" Inherits="Telerik.Web.Examples.Upload.CustomProgress.DefaultVB" %>
    <%@ register tagprefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" %>
    <%@ register tagprefix="qsf" namespace="Telerik.QuickStart" %>
    <%@ register tagprefix="qsf" tagname="Header" src="~/Common/Header.ascx" %>
    <%@ register tagprefix="qsf" tagname="HeadTag" src="~/Common/HeadTag.ascx" %>
    <%@ register tagprefix="qsf" tagname="Footer" src="~/Common/Footer.ascx" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head id="Head1" runat="server">
            <qsf:headtag ID="Headtag1" runat="server" />
        </head>
        <body class="BODY">
            <form runat="server" id="mainForm" method="post">
            
             <telerik:RadScriptManager id="ScriptManager1" runat="server" />
            
                <qsf:Header ID="Header1" runat="server" NavigationLanguage="VB" />
                
                <p>
                 Press the submit button in order to start monitoring custom progress
                </p>
                <asp:button ID="buttonSubmit" runat="server" Text="Submit" OnClick="buttonSubmit_Click" CssClass="RadUploadButton" />
                
                <telerik:RadProgressManager id="Radprogressmanager1" runat="server" />
                
                <telerik:RadProgressArea id="RadProgressArea1" runat="server" />
                
                <br /><br /><br /><br /><br /><br />
                
                
                <qsf:Footer ID="Footer1" runat="server" />
            </form>
        </body>
    </html>

Get more than expected!

 
 

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451