79305600

Date: 2024-12-24 12:34:08
Score: 1
Natty:
Report link

Additionally to @Marco's answer, if you have a kendo drop down list that you only want to enable on Add,and not on Edit, you can also use the onEdit event handler like this (typeScript code) :

public onEdit = (e) => {
  if (!e.model.isNew()) {
    var region = e.container.find("input[name='City']").data('kendoDropDownList');
    region.enable(false);
  }
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Marco's
  • Low reputation (0.5):
Posted by: Cristian Rusanu