Currently, I am trying to modify the background color of certain controls using JavaScript. While I have figured out how to do this for DropDownList and ComboBox components, I'm facing difficulty with the DatePicker. The frustrating part is that there doesn't seem to be a universal method for accessing the necessary elements within each control. For instance, when changing the background color of a dropdownlist, I can access the "span" element like so:
$("#myDropDown").data("kendoDropDownList").span.css("background-color", "#BDD1FF");
On the other hand, for a combobox, I target the "input" element:
$("#myComboBox").data("kendoComboBox").input.css("background-color", "#BDD1FF");
Unfortunately, none of these methods seem to work for the kendoDatePicker. Is there a solution out there that someone might know? I've attempted direct CSS manipulation (similar to JQuery) but haven't had any success.
UPDATE: My requirement is to alter only specific controls within my forms, rather than all of them. This is why directly overriding the kendo CSS isn't feasible for me. Additionally, I need to apply this background change only when my view model is in edit mode. Therefore, being able to toggle classes dynamically is essential, which is why I'm considering utilizing JavaScript.