Hi,
i want to prevent file deletion on click of "Cancel" from confirmation alert
<telerik:RadAsyncUpload ID="radUpload" runat="server" 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();
}
}
How to prevent file deletion on click of "Cancel" button.
On click of "Cancel" it is not not deleting from row, but actually file is deleted from control. So on click of Cancel button i want to prevent the file delete from control also.
Thanks,
Chandra.T