When a row double click a edit form pops up and re-sizes but when add new record button is click the form is not re-sizes.
This only works when edit button is clicked:
$("#grid tbody").on("dblclick", "tr", function () {
var grid = $("#grid").data('kendoGrid');
grid.editRow(this);
$(".k-edit-form-container").parent().width(1200).data("kendoWindow").center();
$(".k-edit-buttons").parent().width(1200).data("kendoWindow");
});
how can I use this code to re-size the form when both buttons are clicked?