function onSave(e)
{
//console.log(e.container.find("input[name=eTmfCompletenessComment]").val());
//if (e.values.eTmfCompletenessComment.length > 3)
//{
// e.values.eTmfCompletenessActive == true;
//}
//if (e.container.find("input[name=eTmfCompletenessComment]").val().length > 3)
//{
// console.log(e.container.uid);
// //checkbox cell is in editmode
// e.container.find("input[name=eTmfCompletenessActive]").checked == true;
// //e.container.item.find("input[name=eTmfCompletenessActive]").checked == true;
//}
$(document).on("keyup", "#eTmfCompletenessComment", function () {
function dirtyField(data, fieldName) {
if (data.dirty && data.dirtyFields[fieldName]) {
return "<span class='k-dirty'></span>"
}
else {
return "";
}
}
var commentcheck = $(this).val()
console.log('$(this).val() =', $(this).val())
var grid = $('#Grid').data("kendoGrid");
var items = grid.items();
if (commentcheck.length > 3) {
//var gc = $(this).parents(".k-")
$(this).parents(".k-master-row").find('input[type="checkbox"]').prop("checked", true);
//items.each(function () {
var dataItem = $(this).parents(".k-grid-cell").find('input[type="hidden"]');
set.dataItem.dirty = true;
dataItem.set(true);
dataItem.dirtyField.set(true, eTmfCompletenessActive)
//})
}
})
console.log("onSave");
}
Hi Adam,
Thank you for the details provided.
The pointed custom checkbox should get into edit mode first. Probably this is causing the pointed issue.
Is it possible to send me a runnable sample of the application, or a dojo example? Once I have the issue represented locally will try my best to fix it.
Looking forward to hearing back from you.
Kind Regards,
Anton Mironov