In general, the Telerik UI Check Box Html Helper for ASP.NET MVC is based on the conventional HTML checkbox element. In order to achieve the desired result, you can access the CheckBox through the classes Telerik UI for ASP.NET MVC generates for it.
Having said that, in order to achieve the desired result you can add an on-change event that:
Checks if the check box is checked through the .checked property (highlighted in blue).
Sets .enable() method on the combo box depending on the statement it goes to (highlighted in orange).
Finally, You can review the dojo sample for this scenario specifically:
$(".k-checkbox").on("change", function () {
if (this.checked) {
$("#kComboBox").data("kendoComboBox").enable(false);
}
else {
$("#kComboBox").data("kendoComboBox").enable(true);
}
});
In this example, I have added an on-change event to the check box with a reference to the widget instance of the combo box. Additionally, I have changed it to be enabled or disabled depending on whether the check box is checked or not.
Please let me know if you have any further questions, and I would gladly answer them.
Regards,
Alexander
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.