RadProgressArea displays itself again at the wrong time.

Thread is closed for posting
5 posts, 0 answers
  1. Kevin
    Kevin avatar
    30 posts
    Member since:
    Sep 2012

    Posted 24 Nov 2010 Link to this post

    I have an asp.net program where a user can fill out a few text boxes, select a file to upload, and then click Submit. 

    Upon clicking Submit the progress bar appears, the file is uploaded, and some info is inserted into a database.

    After that process completes the user is shown a confirmation page with some buttons to go back and submit another sale or exit the program.

    When clicking the button to submit another sale the progress bar will briefly pop up again.  It shows 0 Total files and the progress bar is about half way across.

    This doesn't always happen, but sometimes will.  I don't understand what's causing the progress area to display itself again.  No files are selected, we're not clicking refresh or anything, just a normal button click causing a postback event.  Neither the button click event, nor the page load event has any code that references the file upload control in any way. 

    I have attached a picture of the error as it's happening.  Please let me know what other information you need to diagnose why this is happening.

    /<evin
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 25 Nov 2010 Link to this post

    Hi Kevin,

    This will happen when the ViewState of the page is very large. Since the area monitors the progress of the post request, if the ViewState and the HTML are very large the area will monitor them as well. Fortunately, the fix is very easy. If you use version later than Q2 2010, please undertake the following steps:

    1) Navigate to the web.config
    2) find the appSettings ection
    3) add a new setting <add key="AllowCustomProgress" value="false">

    alternatively, you can do the following, paste the following code after your ScriptManager declaration:

    <script type="text/javascript">
            var prm = Sys.WebForms.PageRequestManager.getInstance();
            var originalClientSubmit;
       
            if (!originalClientSubmit) {
                originalClientSubmit =
    Telerik.Web.UI.RadProgressManager.prototype._clientSubmitHandler;
            }
      
            Telerik.Web.UI.RadProgressManager.prototype._clientSubmitHandler = function(e) {
                if(!prm._postBackSettings.async) {
                    originalClientSubmit.apply(this, [e]);
                }
            }
        </script>



    Kind regards,
    Genady Sergeev
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kevin
    Kevin avatar
    30 posts
    Member since:
    Sep 2012

    Posted 30 Nov 2010 Link to this post

    Thank you for your feedback.

    We're using an older version of the tools, so I cannot currently try your first suggestion.  I tried the Javascript block, but the issue remains.  It looks like we're going to have to update our Telerik tools then to fix this issue?
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 03 Dec 2010 Link to this post

    Hello Kevin,

    I am not sure why the javascript workaround is throws errors at  your end. I wonder if upgrading to the current version is an option for you. Please, let us know.


    Best wishes,
    Peter
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  6. Kevin
    Kevin avatar
    30 posts
    Member since:
    Sep 2012

    Posted 06 Dec 2010 Link to this post

    We updated to the latest set of controls, I added the web.config line, and my users are reporting that they do not see the issue anymore.

    So this one is resolved.  Thank you for your feedback.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017