Recently a readonly attribute has been added to a number of input fields. This was a great addition. Thank you!
Would it be possible to add this attribute to Telerik Form?
Example:
<FormItem Enabled="false" ReadOnly="true"/>
9 comments
Søren
Posted on:17 Nov 2025 07:20
Please just make it already. as i understand it readonly is already a thing on form in html.
and yes i know we can make a template. but if we have to do that every time whats the point of FormItem itself?
and as Rama said. enabled is on all. but its not nice to look ad since it disabels all and can be hard to read.
Denny
Posted on:14 Nov 2025 16:56
this is a very usefull feature, it would be great to be able to create a form that can be shown as a "details page" and re-use the same page / component by just setting it to edit mode...
and for that matter add record.... keep one form to serve all 3 can help reduce coding and keep a standard UI.
ADMIN
Dimo
Posted on:02 Jun 2025 13:15
Hi Derrick,
Yes, your thoughts make complete sense. We are waiting for the feature request to gain enough popularity to prioritize it and schedule for implementation.
I know this is kind of old, but I've come across a situation where having a "ReadOnly" attribute would be nice.
The problem with using a "Template" is that once you go down that path you lose a lot of the other parts which make the FormItem easy to use. For example, you have to now create your own Label, Hint, and Validation controls to match those of the other FormItems.
It's not super hard, but you go from this:
<FormItemLabelText="Mobile Phone"Field="@(nameof(UserProfileDto.MobileNumber))"Hint="You will received texts at this number."/>
To this:
<FormItemLabelText="Email Address"Field="@(nameof(UserProfileDto.Email))"Hint="This value cannot be changed."><Template><labelclass="k-form-label">Email Address</label><TelerikTextBox@bind-Value="UserProfile.Email"ReadOnly="true"/><divclass="k-form-hint">This value cannot be changed.</div></Template></FormItem>
ADMIN
Dimo
Posted on:07 Oct 2024 05:45
Hello Rama,
Currently you can use a FormItemTemplate with a ReadOnly component inside.
Yes, if we enabled="false", the appearance is getting changed. everthing is grayed out including lables and textboxes and text inside the textboxes.
If we set readonly, the appearance will look same except user cannot enter any data.
I have the same issue, but no idea how to implement this.
ADMIN
Dimo
Posted on:26 Jul 2023 14:24
Thanks, Dale!
Dale
Posted on:26 Jul 2023 14:09
Hi Dimo,
The problem is by just setting Enabled="false" users are not able to select the input box to continue copying data out of the field. ReadOnly was made available on all input boxes so we can continue to select and copy data from the field. It is possible to set up a template for each form item but that is a lot of extra work to do to make sure all fields are ReadOnly.
It is actually extremely rare I would ever want to have a disabled input that users cannot select and copy.
ADMIN
Dimo
Posted on:26 Jul 2023 08:57
Hi Dale,
We have confirmed this as a valid feature request. However, can you explain why is Enabled="false" not suitable for your use case? Is it something related to the behavior, or appearance, or something else?
This will help us understand your problems and needs better.