How create confirmation popup in kendo UI?

Viewed 6372

I have jquery UI code for confirm popup.

if (confirm('Are you sure you want to delete the batchjob:' + 
 dataItem["Name"])) {
            $.get("@Url.Content("~/BatchJob/DeleteBatchJob")", { batchJobDetailId: parseInt(dataItem["BatchJobDetailId"]) }, function (data) {
                if (data) {
                    debugger
                   var batchJobValidateWnd = $("#ValidateBatchJobStatus").data("kendoWindow");
                    batchJobValidateWnd.content("BatchJob deleted successfully.");
                    batchJobValidateWnd.center().open();
                    $.post("@Url.Content("~/BatchJob/SearchBatchJobDetailByParams")", { jobName: $("#Name").val(), startDate: $("#ScheduleStartDate").val() }, function (data) {

                    });
                }
                else {
                    debugger
                    window.location = '@Url.Content("~/BatchJob/Create")/' + parseInt(dataItem["BatchJobDetailId"]);
                }
            });
        }

And I need Kendo Confirmation popup?How i change jquery confirm popup to kendo confirm popup

1 Answers
Related