Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Documentation and Tutorials > RadProgressArea Question

Not answered RadProgressArea Question

Feed from this thread
  • burton avatar

    Posted on Dec 21, 2011 (permalink)

    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.

    Reply

  • jumpstart Master avatar

    Posted on Dec 22, 2011 (permalink)

    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!

    Reply

  • Bozhidar Bozhidar admin's avatar

    Posted on Dec 26, 2011 (permalink)

    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
    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Documentation and Tutorials > RadProgressArea Question