Marianne,
You can use the following logic to check whether a Grid row is in edit mode:
if($('#grid').find('.k-grid-edit-row').length > 0) {
console.log("Grid is in edit mode");
}
else {
console.log("Grid is not in edit mode");
}
When a row is in edit mode , we apply the "k-grid-edit-row" class to that row. So whenever you want to check this you can use this logic. If there are no rows found that means the Grid is not in edit mode, if there is a row with that class, then the Grid is in edit mode. Highlighted in green is the name (id) of the Grid, which you should replace with the actual name.
Regards,
Ivan Danchev
Progress Telerik
Progress is here for your business, like always.
Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.