destroy: function (options) { debugger; var x = JSON.parse(kendo.stringify(options)); alert(x); var data = JSON.parse(kendo.stringify(x.data)); alert(data); var models = kendo.stringify(data); models = models.replace("[", ""); models = models.replace("]", ""); alert(models); var parsedData = JSON.parse(models); alert(parsedData); $.ajax({ type: "POST", url: url2, contentType: "application/json; charset=utf-8", data: JSON.stringify({ id: parsedData.id }), dataType: "json", success: function (result) { if (result.d !== "success") { alert(result.d); } dataSource1.read(); }, error: function (result) { alert(result.Id); } }); },
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)