How to make readonly all control in Kendo From

1 Answer 43 Views
Form
Mr Chuc
Top achievements
Rank 2
Iron
Mr Chuc asked on 30 Aug 2022, 02:53 AM

I want Kendo From to be readonly for all control, how do I do that?

Please help me, thanks!

1 Answer, 1 is accepted

Sort by
0
Lyuboslav
Telerik team
answered on 01 Sep 2022, 10:11 AM

Hello Nguyen,

I would recommend you to see the dojo I prepared for you. To make the specific field in Form "read-only" I added an attribute as in the snippet below:

{
                field: "NumericTextBox",
                .......
                attributes: { readonly: "readonly" },
              },

Also to make a Checkboxes/Checkboxgroup or Radiobutton/RadiobuttonGroup "read-only" you should set enable to "false":

field: "RadioGroup",
                editor: "RadioGroup",
                label: "RadioGroup:",
                editorOptions: {
                  items: ["Admin", "Manager", "Employee"],
                  layout: "horizontal",
                  enabled: false,
                  labelPosition: "before"
                }

I hope this will help you.

Regards,
Lyuboslav
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Tags
Form
Asked by
Mr Chuc
Top achievements
Rank 2
Iron
Answers by
Lyuboslav
Telerik team
Share this question
or