This is a migrated thread and some comments may be shown as answers.

RadProgressArea Question

2 Answers 55 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
burton
Top achievements
Rank 1
burton asked on 21 Dec 2011, 05:38 PM

Hi. Here's my scenario:

One RadProgressArea and one RadProgressManager and one button on my aspx page. I want to monitor the call to my simple web service and display time until process is complete.

Here is C# code behind for button onClick event:

public partial class IISProcess : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            RadProgressArea1.Localization.UploadedFiles = "Completed Steps: ";
            RadProgressArea1.Localization.CurrentFileName = "Step: ";
            RadProgressArea1.Localization.TotalFiles = "Total Steps: ";
        }
    }
   
    protected void myProgressButton_Click(object sender, EventArgs e)
    {
        UpdateProgressContext();
    }

    private void UpdateProgressContext()
    {
        RadProgressContext progress = RadProgressContext.Current;
        IIS_1 IISWebService = new IIS_1();
        string theOrder = "0038240";
        IISWebService.GetOrdersFromIIS(theOrder);       
    }
}

My question is how can I monitor my web service process via the RadProgressArea control ???? What is missing in my code?

Thank You in advance.

2 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 22 Dec 2011, 08:20 PM
Burton:

I'm not sure if you've seen this forum thread, yet, but it should prove very helpful here. At the bottom of the thread, there is a  "MonitoringCustomProgress.zip" sample project attached.

Progress Bar Without Uploading A File

Hope this helps.

Cheers!
0
Bozhidar
Telerik team
answered on 26 Dec 2011, 05:41 PM
Hi,

You can update the RadProgressArea from the web service the same way as shown here. I've also attached a small sample project demonstrating the approach. 

Please note that you still have to manually update the ProgressContext. There is no way for it to know how far along the function execution is on it's own.

Greetings,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Documentation and Tutorials
Asked by
burton
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or