Search code examples
kendo-uikendo-gridkendo-asp.net-mvc

Confirmation delete message kendo grid


I have a Kendo MVC grid where I want to delete a record from it.

When I use their Destroy command it generates a confirmation popup with the following text: "Are you sure you want to delete this record?".

Instead of the message I would like to display something else, for example: "Do you really really really want to do this?"

Is there a straight forward way to do this ?

Thank you


Solution

  • You can set the text in the editable confirmation property of the grid:

    https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-editable.confirmation

    $("#grid").kendoGrid({
       editable: {
         confirmation: "Do you really really really want to do this?"
       }
    });