Hello,
The common mistake. Also setRowData, getRowData and etc does not have effect in edit mode – there are a tons of post here
The code should be
afterSubmitCell: function(response, id, name, val, iRow, iCol) { ….
if (!validateDate(enddate, startdate)) { //if (Date.parse(startdate) > Date.parse(enddate)) {