or
$(document).ready(function () { $("#attachments").kendoUpload({ async: { saveUrl: '@Url.Action("SaveAppointments", "Upload")', autoUpload: false, }, upload: onUpload, select: onSelect, success: onSuccess }); }); function onUpload(e) { //Standard confirm works fine but would like to use a dialog //so style can be applied etc //if (!confirm("Is this upload for the correct candidate?")) { // e.preventDefault(); // return; //} //Dialog shows correctly but how do I stop //the upload if the user clicks no var kendoWindow = $("<div />").kendoWindow({ title: "Confirm", resizable: false, modal: true }); kendoWindow.data("kendoWindow") .content($("#upload-confirmation").html()) .center().open(); kendoWindow .find(".upload-confirm,.upload-cancel") .click(function () { if ($(this).hasClass("upload-confirm")) { alert("Upload file..."); } kendoWindow.data("kendoWindow").close(); }) .end() var files = e.files; $.each(files, function () { var ext = ".bmp .doc .docx .xls .xlsx .pdf .txt .jpg .jpeg .gif .zip .mp3 .wav .wmv .png .zipx .rar"; if (ext.indexOf(this.extension) < 0) { alert("Incorrect file type, accepted file types are: .bmp, .doc, .docx, .xls, .xlsx, .pdf, .txt, .jpg, .jpeg, .gif, .zip, .zipx, .rar, .mp3, .wav, .wmv and .png") e.preventDefault(); }; if (this.size > 10485760) { alert("File too large, maximun upload size is 10mb") e.preventDefault(); }; if ($("#fileDescription").val() + '' == 'undefined') { alert("A file description is required.") e.preventDefault(); }; e.data = { fileDescription: $("#fileDescription").val(), appointmentid: $("#appointmentid").val() }; }); }<script type="text/javascript" src="js/kendo.culture.es-ES.js"></script>$("#importe_oferta").kendoNumericTextBox({culture: "es-ES"format: "c2",min: 0,decimals: 2,spinners: false});$("#importe_oferta").kendoNumericTextBox({format: "c2",min: 0,decimals: 2,spinners: false
)};$("#importe_oferta").kendoNumericTextBox({min: 0,decimals: 2,spinners: false});