How to set a Title for Kendo confirmation in MVC?

kendo.confirm yes no
kendo ui angular confirm dialog
window confirm change title
kendo dialog grid
kendo comment box
kendomodal
kendodialog modal
kendo dialog animation

I need to display a correct title for my kendo confirmation box.

I have the following logic:

if ((Math.abs(newAmount) < Math.abs(Amount)) && newAmount != 0)
{            
     kendo.confirm(msg).then(function () {
                SaveData();
     }, function () {
     });
}
else {
        SaveData();
}

Every time confirmation is displayed I have "localhost" value in that.

How do I set it up, so it displays what I need.

I went through a lot of tutorials on Kendo. There are different ways offered, however, in my case I need to use kendo.confirm logic.

How do I do that?


I had the same problem with my Kendo Alert, I fixed it with the following solution:

myalert("mytext"); 

function myalert(content) {
    $("<div></div>").kendoAlert({
        title: "mytitle!",
        content: content
    }).data("kendoAlert").open();
}

See my question and answer: How do I change the Kendo alert title?

Dialog change kendo.confirm title in Kendo UI for jQuery General , I had been using the MVC server wrappers however I also found you cannot set the title, however using the kendo.ui.Confirm you can use the  confirm. Opens a Kendo UI Confirm popup. Similar to the native window.confirm() method. Example - Open a Kendo UI Confirm on the page <script> kendo.confirm("Confirm text"); </script> Parameters text String. The text to be shown in the Confirm popup. Returns. Promise a jQuery promise instance, which can be used for callbacks, or passed to


It is not possible to do this through JS.

However, you can achieve this by CSS.

.k-confirm .k-window-titlebar::before {
    content: 'Confirmation';
}

.k-confirm .k-window-titlebar .k-dialog-title {        
  display:none;
}

Override the Kendo CSS, content: 'Confirmation'; is the title of kendo.confirm.

Customize the Predefined Dialogs, However, this configuration enables you to change only the message without providing you the control over the Dialog itself—for example, over the title. Title and Legend. The Kendo UI Chart supports options for configuring the appearance of its title and legend. Setting the Title. To control the position of the title, use the following available position options of the title property: "top" "bottom" Setting the Legend. The Chart legend displays the name of the configured data series.


for me these work

function k_alert(id, title, message){
    //var title = "Operazione Non consentita.";
    //var message = " Soltanto il venditore autore dell'offerta puo cancellare il record.";
    var out ='<div id="' + id + '"></div>';
    var objtemplate = $(out).appendTo("body");
    eval(objtemplate);
    $("#" + id).kendoAlert({    
        title: title,
        content: message,
        messages:{
            okText: "OK"
        }
    }).data("kendoAlert").open()
    $("#" + id).siblings(".k-window-titlebar.k-dialog-titlebar.k-header").children("span").css("visibility", "visible"); 
}

function k_confirm(id, title, message){
    //var title = "Operazione Non consentita.";
    //var message = " Soltanto il venditore autore dell'offerta puo cancellare il record.";
    var out ='<div id="' + id + '"></div>';
    var objtemplate = $(out).appendTo("body");
    eval(objtemplate);
    $("#" + id).kendoConfirm({    
        title: title,
        content: message,
        messages:{
            okText: "OK"
        }
    }).data("kendoConfirm").open()
    $("#" + id).siblings(".k-window-titlebar.k-dialog-titlebar.k-header").children("span").css("visibility", "visible"); 
}

API Reference - Kendo UI Dialog, Gets or sets the title of a Dialog. Can be a text string. Supports chaining when used as a setter. If passed to the method, an HTML string would be escaped. Depending on your project, you might need to open alert, prompt, and confirmation Kendo UI Dialogs. The easiest way to achieve this behavior is to use the dedicated methods which are exposed through the Kendo UI API. However, this configuration enables you to change only the message without providing you the control over the Dialog itself—for example, over the title.


implementation of kendo.confirm title, NET MVC Feedback Portal · Create an account Log In · Back to Feed implementation of kendo.confirm title. Implement kenfo.confirm with title. The Dialog widget is a subset of the Kendo UI Window widget where the most prominent difference is the added functionality for actions. Key Features. Fully customizable visual appearance of the dialog title and body; Support for rich text content; Predefined Alert, Confirm, and Prompt Dialogs; Built-in modality and animations


title - API Reference - Kendo UI Window, In this article you can see how to configure the title property of the Kendo UI Window. This code library demonstrates how to customize the delete confirmation dialog using Kendo UI templates, Kendo UI Window widget and the remove method of the grid's dataSource. custom-delete-confirmation-dialog.html


Inject the Task Title for Display in the Delete Confirm Dialog, An example on how to display the title of the task or event in the Delete confirmation dialog of the Kendo UI Scheduler. The text of the chart title. You can also set the text directly for a title with default options. The text can be split into multiple lines by using line feed characters (" "). Example - set the chart title position