I am using the Kendo 2013.2.716 and JQuery 2.0.3 user interface and I place the grid on my page and my question is:
Does anyone know how to say what was destroyed by the destroy command from the grid?
For instance:
<!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8" /> <link href="kendo.common.min.css" rel="stylesheet" /> <link href="kendo.default.min.css" rel="stylesheet" /> <script type="text/javascript" src="jquery-2.0.3.min.js"></script> <script type="text/javascript" src="kendo.all.min.js"></script> </head> <body> <div id="grid"></div> <script type="text/javascript"> $(document).ready(function() { var products = []; for(var i = 1; i <= 40; i++) { products.push({ ProductId: i, ProductName: "Product " + i }); } $("#grid").kendoGrid({ dataSource: { data: products, schema: { model: { id: "ProductId", fields: { ProductName: { type: "string" }, } } }, requestEnd: function (e) { if (e.type === "destroy") { alert("OK, so something got destroyed, but what??"); } } }, editable: "inline", columns: [ "ProductName", { command: "destroy", title: " ", width: "100px" } ] }); }); </script> </body> </html>
I found the requestEnd in the documentation , but I'm completely confused to find out where the item will be destroyed. I just need the item id so that I can update other parts of my page accordingly.
I wonder if I need to grab it in advance somehow.
source share