Reputation: 1199
I have a form with various controls such as numeric boxes, comboboxes and datepickers. Is there a way how to disable/make them readonly all at once? Something like with the jQuery Mobile set the attribute and call the refresh()
method.
Upvotes: 1
Views: 3264
Reputation: 1207
You can use kendo's widgetInstance method.
$("[data-role]").each(function (index, el) {
var widget = kendo.widgetInstance($(el));
if (widget.enable) {
widget.enable(false);
}
});
Upvotes: 6
Reputation: 11
You can achieve it by the below line of jQuery.
$("#yourdivid textarea, #yourdivid input, #yourdivid select").attr('disabled',true);
Upvotes: 0