Kendo ui 如何在剑道网格中传递列ID或值以进行删除确认

Kendo ui 如何在剑道网格中传递列ID或值以进行删除确认,kendo-ui,kendo-grid,Kendo Ui,Kendo Grid,我想将列值传递给删除确认。是否确实要删除“列值”?我该怎么做 我在下面的链接中找到了与我的问题相关的问题。我想扩大这个答案 确认消息可以使用函数而不是硬编码字符串 $("#grid").kendoGrid( { dataSource: dataSource, columns: [ "ProductName", { field: "UnitPrice", title: "Unit Price", format: "{0:c}", width: "120p

我想将列值传递给删除确认。是否确实要删除“列值”?我该怎么做

我在下面的链接中找到了与我的问题相关的问题。我想扩大这个答案


确认消息可以使用函数而不是硬编码字符串

$("#grid").kendoGrid(
  {
    dataSource: dataSource,
    columns: [
      "ProductName",
      { field: "UnitPrice", title: "Unit Price", format: "{0:c}", width: "120px" },
      { field: "UnitsInStock", title:"Units In Stock", width: "120px" },          
      { field: "Discontinued", width: "120px" },
      { command: ["edit", "destroy"], title: " ", width: "250px" }],
      editable: {
        mode: "inline",
        confirmation: function(e){
          return  "Are you sure that you want to delete record for " + e.ProductName + "?";
        }
      }
});
范例