Custom delete confirmation by clicking on Kendo Grid

I have a Kendo grid where I need to set up a confirmation confirmation window for deletion based on the data in the deleted row. I have a customized generic message as part of the Grid configuration as shown below.

 editable: {
     confirmation: "Are you sure that you want to delete this record?",
     mode: "popup",
     template: kendo.template($("#popup-editor").html())
}

I looked at using the remove handler, but it fires after the row has been deleted.

+4
source share
3 answers

I assume that you will need to do this manually. Just add a custom button to the grid that calls your code to delete the item.

Kendo Grid User Team http://demos.kendoui.com/web/grid/custom-command.html

jsbin http://jsbin.com/OZeLuXA/1/edit

+4

Kendo , . , , , .

, " Kendo UI Grid" .

" Kendo " Telerik .

+1

HTML-

<div>
      <div id="div_alert_window"></div>
      <div class="dialog button">
             click on dialog: <input type="button" value="click me!" id="btnClickMe" />
      </div>
</div>

Js

   $(function () {
       $("#btnClickMe").click(function () {
           // This is for [Warning / Information / Confirm / Error] dialog box.
           confirmDialogMSG("Error", 
                                "Inflow encountered some internal error.", 
                                "Error",  ["OK"],  null);
       });
   });
0
source

All Articles