In a master child Kendo Grid in the child grid that's been configured for edit/create/celete how do we know if are editing or creating ? For a single level grid we can handle it this way and set the window title.
edit: function(e) {
if (!e.model.isNew()) {
$(".k-window-title").text("Edit ");
// Disable the editor of the "id" column when editing data items
var numeric = e.container.find("input[name=id]").data("kendoNumericTextBox");
numeric.enable(false);
}
else{
$(".k-window-title").text("Create");
}
How do we do the same in a child grid ? ( http://demos.telerik.com/kendo-ui/grid/hierarchy ) . Here
$("<div/>").appendTo(e.detailCell).kendoGrid({