show progress in tooltip

2 posts, 1 answers
  1. Sathish
    Sathish avatar
    15 posts
    Member since:
    Dec 2010

    Posted 04 Dec 2012 Link to this post


    Has anyone tried to implement radprogressarea on radasyncupload as a TOOLTIP? so when files are being uploaded, I want to mouse over it and get additional details as to estimated time of completion, rate of upload etc.

    Can someone point me in the right direction as to how to get started or provide an example? I think this will be a cool thing to have inbuilt by Telerik as well.
  2. Answer
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Dec 2012 Link to this post

    Hi Sathish,

    Here is the sample code that I tried to show the RadProgressArea inside a RadToolTip on click of a Button.

    <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="AsyncUpload1">
        <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
        <telerik:RadProgressArea ID="RadProgressArea1" runat="server">
    <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" MultipleFileSelection="Automatic" />
    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" />

    protected void Button1_Click(object sender, EventArgs e)
    private void UpdateProgressContext()
            const int total = 100;
            RadProgressContext progress = RadProgressContext.Current;
            progress.Speed = "N/A";
            for (int 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
                progress.TimeEstimated = (total - i) * 100;
                //Stall the current thread for 0.1 seconds

    Please elaborate your scenario if it doesn't helps.

Back to Top