PDA

View Full Version : How to make textfield looks like label?



xt99
3 Feb 2012, 9:00 AM
Hello everyone!

I've got an application with a lot of pages, and most of them are forms with number of fields.
Business logic can turn some of fields into readOnly state, and application knows it before controller renders view.
The question is: is there any way to make readOnly fields look like labels, but act like a form fields ( for example send value on form.getValues() call ).

I tried to use some templates, but they are didn't work ( actually, i'm quite a noob in templates ).

mitchellsimoens
3 Feb 2012, 9:09 AM
Do you want it editable or do you just need to use Display field?

xt99
4 Feb 2012, 12:17 AM
Yes, Ext.form.field.Display is exactly what I was looking for...
Sorry for such RTFM question :">

I will always search all the docs first.
I will always search all the docs first.
I will always search all the docs first.