I have a problem where I need to have the foreign key dropdowns disabled while editing. I have used the default Event for edit but it only seem to fire once.
.Events(e => e.Edit("edit"));
Like this.
function edit(args) {
var insertMode = args.model.isNew();
if (insertMode == false) {
var dropdownlist = $("#KeyFigureId").data("kendoDropDownList");
dropdownlist.enable(false);
var dropdownlisttwo = $("#DimensionOneId").data("kendoDropDownList");
dropdownlisttwo.enable(false);
var dropdownlist3 = $("#DimensionTwoId").data("kendoDropDownList");
dropdownlist3.enable(false);
var dropdownlist4 = $("#DimensionThreeId").data("kendoDropDownList");
dropdownlist4.enable(false);
}
}
Any chance we could get a separate template for Insert and Edit in the future? (also asked in the webinar).
.Events(e => e.Edit("edit"));
Like this.
function edit(args) {
var insertMode = args.model.isNew();
if (insertMode == false) {
var dropdownlist = $("#KeyFigureId").data("kendoDropDownList");
dropdownlist.enable(false);
var dropdownlisttwo = $("#DimensionOneId").data("kendoDropDownList");
dropdownlisttwo.enable(false);
var dropdownlist3 = $("#DimensionTwoId").data("kendoDropDownList");
dropdownlist3.enable(false);
var dropdownlist4 = $("#DimensionThreeId").data("kendoDropDownList");
dropdownlist4.enable(false);
}
}
Any chance we could get a separate template for Insert and Edit in the future? (also asked in the webinar).