// Soft-Delete person var processURL = crudServiceBaseUrl + '?method=deletePerson'; function deletePerson(id){ if (confirm('#getResource("person.detail.confirmdel")#')) { $.ajax({ type: 'POST', url: processURL, data: { PERS_KY: id }, success: function (data){ var thingToDelete = "tr:eq("+id+")"; var grid = $("#list").data("kendoGrid"); grid.removeRow(thingToDelete); }, error: function (xhr, textStatus, errorThrown){ alert("Error while deleting person"+ "\n"+ xhr + "\n"+ textStatus + "\n" + errorThrown); } }); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)