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