This is a migrated thread and some comments may be shown as answers.

Disable all controls

3 Answers 1183 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 07 Feb 2017, 05:50 PM

I'm trying to write some javascript that will disable/enable all controls, regardless of type, in a specified div.

How can I do this? I understand that I might have to write a little code for each time of control, but I need to know where to start.

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 08 Feb 2017, 12:32 PM

Hello Alex,

You may find useful the following sample: http://jsfiddle.net/falafelsoftware/p6zk1n4s/ and can use it as a base to proceed with your scenario.


Best regards,
Rumen
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Alex
Top achievements
Rank 1
answered on 08 Feb 2017, 02:19 PM

This is Great, and I think will solve my issues for now, but it doesn't seem intuitive on how this would be done for other controls. Are there plans in the future to create some generic interface for all kendo controls so that you can do common things like "disable" for a group of controls, even if you don't know the ID's or names, etc.?

0
Rumen
Telerik team
answered on 08 Feb 2017, 02:27 PM

Hello Alex,

It would be great if you post your useful idea in the Kendo User Voice portal to see how popular it will become.

Best regards,
Rumen
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Alex
Top achievements
Rank 1
Share this question
or