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

[Solved] Any way to customize the popup error message?

3 Answers 151 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Samwise
Top achievements
Rank 1
Samwise asked on 17 Apr 2009, 01:08 PM
Hello,

I would like to display another message when the RadUpload Ajax message error 12029 occurs.
We have a few users behind firewalls that encounter this error rather frequently.

here is the default message: Telerik Popup Error Message

Any help is greatly appreciated,
Thanks
Sam

PS: I am using the 2008.3.1125.35  version of radupload component.

3 Answers, 1 is accepted

Sort by
0
Accepted
Genady Sergeev
Telerik team
answered on 20 Apr 2009, 02:36 PM
Hi Samwise,

There are 3 types of error messages and their respective private functions are:
  1. _showNotFoundMessage
  2. _showGenericErrorMessage
  3. _showInvalidContentMessage
In your case you can overwrite the error message  from the screenshot the following way:

<asp:ScriptManager runat="server" ID="ScriptManager1"
    </asp:ScriptManager> 
    <script type="text/javascript"
        Telerik.Web.UI.RadProgressManager.prototype._showGenericErrorMessage = function() { 
            alert('new error message'); 
        }      
    </script> 

It is important to place the JavaScript code after the ScriptManager, otherwise it will not work.
Despite that, what is the case with your users? Have you registered all necessary handlers in the WebConfig? Here you can find a help topic concerning the RadProgressArea troubelshooting.

Greetings,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Samwise
Top achievements
Rank 1
answered on 21 Apr 2009, 12:00 PM
Hi and thank you Genady,

I think I am facing an issue with firewalls trimming some Ajax http headers.
I have found a few hints on google but I am not sure yet.

Anyway, my problem is that after a few minutes, the radupload progress bar stop moving for Internet Explorer users (IE 6/7/8).
The upload process is not impacted though, because after a moment it still manage to upload the files completely.

The radupload progress bar works well everytime on Intranet even if the upload takes a few hours.
It works also fine with FireFox, both on intranet and internet.

If you have any suggestion, please let me know,
Thanks,
Sam
0
Accepted
Genady Sergeev
Telerik team
answered on 21 Apr 2009, 03:06 PM
Hi Samwise,

I think that this blogpost may explain this strange behavior. In short, the ProgressArea uses AJAX to comuncaite with the server and to update the progress. Using AJAX, the packets sent to the server are with special, non-standard headers. Thus way some firewalls filter them and no async update could occur. Please, refer to the blog post for more detailed explanation.

Greetings,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload (Obsolete)
Asked by
Samwise
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Samwise
Top achievements
Rank 1
Share this question
or