This is a migrated thread and some comments may be shown as answers.

RadProgressArea displays itself again at the wrong time.

4 Answers 81 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 24 Nov 2010, 05:30 PM
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

4 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 25 Nov 2010, 03:45 PM
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.
0
Kevin
Top achievements
Rank 1
answered on 30 Nov 2010, 05:48 PM
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?
0
Peter
Telerik team
answered on 03 Dec 2010, 10:22 AM
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.
0
Kevin
Top achievements
Rank 1
answered on 06 Dec 2010, 11:08 PM
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.
Tags
Upload (Obsolete)
Asked by
Kevin
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Kevin
Top achievements
Rank 1
Peter
Telerik team
Share this question
or