I want to create a global onOpen function that will apply to all dropdownlists without the need to manually attach it to each one's open option on the site. For example, I want to hide the optionLabel if it has a class of disabled in it but I don't want to have to manually attach it to each dropdownlist created.
open: function () {
let optionLabel = this.element.getKendoDropDownList().list.find(".k-list-optionlabel");
let isDisabled = $(optionLabel).find(".disabled").length > 0;
if (isDisabled) {
$(optionLabel).hide();
}
},