Hi Tomasz,
Thank you for contacting Syncfusion support.
We have analyzed your requirement and we can achieve your requirement by deleting the record by using deleteItem public method and manually handling the escape key function with sample level. Please refer the below code example for this
<script type="text/javascript">
var isAdding = false;
$(function () {
$("#GanttContainer").ejGantt({
dataSource: projectData,
endEdit: function (args) {
isAdding = false;
alert(args.rowIndex);
},
//..
});
});
$(document).keyup(function (e) {
if (e.keyCode == 27 && isAdding) {
var obj = $("#GanttContainer").data("ejGantt");
obj.deleteItem();
isAdding = false;
} })
</script> |
We have prepared the sample for your reference, please find the sample link below
Please get back to us if you require any further assistance on this.
Regards,
Jesus Arockia Sankaran S