Код: Выделить всё
function deleteRow(rowdata) {
$("#dialog").kendoDialog({
width: "300px",
height: "300px",
title: "Delete row?",
closable: true,
modal: true,
content: "
Are you sure you want to delete this row?",
actions: [
{ text: 'Cancel', action: onCancel },
{ text: 'Delete', primary: true, action: onDelete }
]
});
function onDelete(e) {
// Delete action confirmed
if(rowdata){
$.ajax({
type: 'DELETE',
url : "${pageContext.request.contextPath}/mvc/abc/service/" + finalRowval.id + "/xyz",
dataType: 'text/html',
data: "",
async: true,
success: function(response) {
//Handle success response
},
error: function(xhr, status, error) {
// Handle error response
}
});
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/786 ... a-function