Progress bar not increasing

Thread is closed for posting
8 posts, 0 answers
  1. krzysztof
    krzysztof avatar
    1 posts
    Member since:
    Jun 2011

    Posted 30 Jun 2011 Link to this post

    Hi, i have problem with RadUpload control version 2011.1.519.35. In SharePoint 2010 progress bar don't increase when i using yours sample code in my WebPart. I have registered the RadUploadProgressHandler etc.

    My code:

    <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
     
    <telerik:RadUpload ID="RadUpload1" runat="server" MaxFileSize="100000000" >
    </telerik:RadUpload>
     
    <telerik:RadProgressArea ID="RadProgressArea1" runat="server" DisplayCancelButton="True" >
    </telerik:RadProgressArea>
     
    <asp:Button ID="Button1" runat="server" Text="Upload" onclick="Button1_Click">
    </asp:Button>

    and

    protected void Page_Load(object sender, EventArgs e)
    {
     if (!IsPostBack)
     {
      RadProgressArea1.ProgressIndicators &= ~ProgressIndicators.SelectedFilesCount;
     }
     RadProgressArea1.Localization.UploadedFiles = "Completed Steps: ";
     RadProgressArea1.Localization.CurrentFileName = "Step: ";
     RadProgressArea1.Localization.TotalFiles = "Total Steps:";
    }
       
    protected void Button1_Click(object sender, EventArgs e)
    {
     UpdateProgressContext();
    }
     
    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
       break;
      }
     
      progress.TimeEstimated = (total - i) * 100;
      //Stall the current thread for 0.1 seconds
      System.Threading.Thread.Sleep(100);
     }
    }
  2. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 07 Jul 2011 Link to this post

    Hi Krzysztof,

    Please excuse us for the delayed answer.

    The issue that you describe sounds familiar.
    What is the exact URL that you use to open the WebPart page?

    All the best,
    Kalina
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Erik
    Erik avatar
    2 posts
    Member since:
    Jul 2011

    Posted 05 Sep 2011 Link to this post

    Hi,

    I have exactly the same problem! Was there any solution for that?
    I also try to use the RadProgressArea inside a SharePoint 2010 WebPart. I registered everthing like described here: http://www.telerik.com/help/aspnet-ajax/moss-progress-area-in-moss.html

      When I register  <add name="RadUploadHttpModule" type="Telerik.Web.UI.SPRadUploadHttpModule, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />   I get the following exception when upload button is clicked:
    Server Error in '/' Application.
    --------------------------------------------------------------------------------
      
    Operation is not supported on this platform. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
      
    Exception Details: System.PlatformNotSupportedException: Operation is not supported on this platform.
      
    Source Error: 
      
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
      
    Stack Trace: 
      
      
    [PlatformNotSupportedException: Operation is not supported on this platform.]
       System.Web.HttpServerVarsCollection.Set(String name, String value) +82
       Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.PostResolveRequestCacheHandler(Object oSender, EventArgs ea) +1202
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
      
       
      
      
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.5444; ASP.NET Version:2.0.50727.5420


    When I register <add name="RadUploadHttpModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" /> in the modules section of the web.config the ProgressAread is shown, but it does not progress...

    Best regards
    Erik
  5. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 08 Sep 2011 Link to this post

    Hello Erik,

    The issue that you describe sounds familiar.
    It occurs in cases you try to access the page where the control is placed with an incomplete URL http://yourSharePointServer/someFolder/(but no aspx file name here)

    Please make sure that the URL of the page that you request is complete:
    http://yourSharePointServer/someFolder/MyPage.aspx.

    All the best,
    Kalina
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  6. Erik
    Erik avatar
    2 posts
    Member since:
    Jul 2011

    Posted 08 Sep 2011 Link to this post

    Hi,

    thank you for your reply! But the Url is ok and complete...
    What I figured out is, that I get the Exception (above), when I register the SPRadUploadHttpModule in the modules section of the SharePoint web.config. The exception is thrown during Post Back for every upload, wether a RadUploadManager & RadProgressArea are present in the page or not.

    When I register RadUploadHttpModule instead, the ProgressArea gets shown, but the progress is not changing. In an ASP.Net Web Application everything is working fine.

    Best regards 
    Erik
  7. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 08 Sep 2011 Link to this post

    Hello Erik,

    Could you please record a demonstration video how the RadProgressArea page behaves when you register RadUploadHttpModule? You can record and share the video with JING - this tool is free and easy to use.

    Additionally please use the FiddlerCap, record the traffic to the page (where the RadProgressArea is located) while you reproduce the issue and provide us the log.
    Thank you in advance.

    Regards,
    Kalina
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  8. Krzysztof
    Krzysztof avatar
    1 posts
    Member since:
    Nov 2011

    Posted 19 Dec 2011 Link to this post

    Hello,

    I am dealing with the same problem.
    Has anybody resolved this issue?

    Regards,
    Christopher
  9. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 21 Dec 2011 Link to this post

    Hi Krzysztof,

    As I have already wrote in my previous posts here - in order to help you we need to observe the issue. 
    Could you please provide us a simplified working code that we will be able to use to create a test web part? Thank you in advance.

    Greetings,
    Kalina
    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
UI for ASP.NET Ajax is Ready for VS 2017