Completed
Last Updated: 22 Jun 2022 10:18 by ADMIN
ADMIN
Peter Milchev
Created on: 07 Jun 2016 10:28
Category: ProgressArea
Type: Bug Report
0
ProgressArea adds extra text "Cancel" to the name of the currently uploading file with AsyncUpload

		
2 comments
ADMIN
Rumen
Posted on: 22 Jun 2022 10:18
The problem is not reproducible anymore since Microsoft no longer supports Internet Explorer where the reported issue can be seen only.
ADMIN
Peter Milchev
Posted on: 07 Jun 2016 10:52
Temporary workaround is to correct the text in the ProgressArea's OnClientProgressBarUpdating event handler:

function OnClientProgressBarUpdatingHandler(sender, args) {
    if ($telerik.isIE9 || $telerik.isIE8 || $telerik.isIE7) {
        var upload = $find("<%= RadAsyncUpload1.ClientID %>");
        var cancelButtonText = upload.get_localization().Cancel;
        var text = args.get_progressData().CurrentOperationText;

        if (text.endsWith(cancelButtonText)) {
            var updatedText = text.slice(0, text.lastIndexOf(cancelButtonText));
            args.get_progressData().CurrentOperationText = updatedText;
        }
    }
}