CurrentOperationText for a Custom Process

8 posts, 1 answers
  1. john81
    john81 avatar
    36 posts
    Member since:
    Jan 2010

    Posted 21 Aug 2013 Link to this post

    I have a custom process I'm using the RadProgressArea for.  I'd like to customize the text shown on the RadProgressArea so it doesn't say anything about files or file upload similar to the demo page (http://demos.telerik.com/aspnet-ajax/progressarea/examples/customprogress/defaultcs.aspx).  I'm following the steps on this page, http://www.telerik.com/help/aspnet-ajax/progressarea-customprogress.html, but the message under the progress bar says "Uploaded files" and the message that is set using CurrentOperationText has "Uploading file" before the message.  How can I get rid of "Uploading file:" in the CurrentOperationText message?  See attached for what I'm seeing.


  2. Answer
    Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 26 Aug 2013 Link to this post

    Hi John,

    Try to set the UploadedFiles localization property to an empty string:
    protected void Page_Load(object sender, EventArgs e)
       {
           RadProgressArea1.Localization.UploadedFiles = "";
           RadProgressArea1.Localization.CurrentFileName = "Step: ";
           RadProgressArea1.Localization.TotalFiles = "Total Steps:";
       }

    Regards,
    Hristo Valyavicharski
    Telerik
    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 the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. john81
    john81 avatar
    36 posts
    Member since:
    Jan 2010

    Posted 26 Aug 2013 Link to this post

    Thanks for the reply.  That did get rid of the uploading files message for both the current operation text and the text under the progress bar.  Is there any way to set the text under the progress bar to something other than null or "Uploaded files"?
  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 29 Aug 2013 Link to this post

    John,

    RadProgressArea is very flexible and customizable control. Almost everything can be positioned with css. Please make a screenshot of this how you want to look and I will try provide you a working code.

    Regards,
    Hristo Valyavicharski
    Telerik
    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 the blog feed now.
  6. john81
    john81 avatar
    36 posts
    Member since:
    Jan 2010

    Posted 29 Aug 2013 Link to this post

    Ideally what I'd like to do is set text in the area right under the temperature bar.  I highlighted that area in the attached screenshot.  Right now it's putting the SecondaryPercent with the SecondaryTotal in parentheses next to it.  What Id like it to be is:

    Report compiling 56% complete (15 out of 33)
  7. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 04 Sep 2013 Link to this post

    Hi John,

    The best option for this scenario is to use Progress Templates. However I'm attaching small sample without them. Please check it out.

    Regards,
    Hristo Valyavicharski
    Telerik
    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 the blog feed now.
  8. john81
    john81 avatar
    36 posts
    Member since:
    Jan 2010

    Posted 05 Sep 2013 Link to this post

    There is a stylesheet in the .aspx file "styles.css" that was not in the zip file you posted.  Can you post that css file?
  9. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 10 Sep 2013 Link to this post

    Hi John,

     
    Here is the sample code that will customize the Progress area:

    <style type="text/css">
     
          #RadProgressArea1_Panel_SecondaryTotal {
          background-color:yellow;
          }
          #RadProgressArea1_Panel_SecondaryValue {
          background-color:red;
     
          }
          #RadProgressArea1_Panel_SecondaryPercent {
          background-color:blue;
          }
      </style>

    Hope this will be helpful.

    Regards,
    Plamen
    Telerik
    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 the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017