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

args.set_cancel(true) is not working

1 Answer 325 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Deepak
Top achievements
Rank 1
Deepak asked on 21 Oct 2010, 04:31 PM

Hi All,

Assembly Version: 2010.2.826.35

i want to cancel file deletion if user clicks on "Cancel" button on confirmation alert.which i am showing on remove(delete).
But that is not happening .It deletes the file and only keeps the file name row

<telerik:RadAsyncUpload ID="radUpload" runat="server" AllowedFileExtensions=".pdf" MaxFileInputsCount="5"  Localization-Select="Browse" Localization-Remove = "Delete Document"                    OnClientValidationFailed="validationFailed" TemporaryFileExpiration="5"            OnClientFileSelected="fileSelected" OnClientDeleting="fileDelete" OnClientFileUploaded ="fileUploaded">
</telerik:RadAsyncUpload>
  
function fileDelete(sender, args) {
        
        if (confirm("Are you sure to Delete the record?"))  {
            args._cancel = false;        
        }
        else {
            args.set_cancel(true);         
            //args._cancel = true;
            //sender._cancelEvent();
        }
    }

Can anyone help me on this.

Thanks,
Deepak Dhirhe

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 26 Oct 2010, 05:13 PM
Hi Deepak,

I've tried reproducing the problem on a sample, however, no avail. I've managed to successfully cancel the deleting operation. I'm attaching my test project to this replay. Can you reproduce the problem on it?

Kind regards,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
AsyncUpload
Asked by
Deepak
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or