How to change the text on Kendo UI Grid destroy or delete command action? How to change the text on Kendo UI Grid destroy or delete command action? jquery jquery

How to change the text on Kendo UI Grid destroy or delete command action?


If you are using Kendo UI for ASP.NET MVC you can use DisplayDeleteConfirmation

        @(Html.Kendo().Grid<OrdersViewModel>()              .Name("Orders")              .HtmlAttributes(new {style = "height: 100%; border-width: 0;"})              .Columns(c =>                  {                     c.Bound(p => p.Id)                     .Width(50)                  }             .Editable(editable =>                  {                     editable.Mode(GridEditMode.InLine);                     editable.DisplayDeleteConfirmation("Your Message here");                  }))


according to the Kendo Grid documentation:

editable.confirmation Boolean | String

Defines the text that will be used in confirmation box when delete an item.


Replace

editable: "inline"

with

editable: {    confirmation: "Your custom message",    mode: "inline"},