RadProgressArea Question

3 posts, 0 answers
  1. burton
    burton avatar
    1 posts
    Member since:
    Jun 2011

    Posted 21 Dec 2011 Link to this post

    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. jumpstart
    jumpstart avatar
    479 posts
    Member since:
    Nov 2011

    Posted 22 Dec 2011 Link to this post

    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!
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 26 Dec 2011 Link to this post

    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
Back to Top