1
votes

I'm using EXTJS, i have a field that i've marked as readonly (using this : Ext.getCmp('myCmp').setReadOnly(true);).

My need is to test if 'myCmp' is set to readOnly?

I've checked the documentation and i did'nt find any think, i'm quite sure that i'm messing some think. Any help ?

1
I think Ext.getCmp('myCmp').readOnly will be display the value. - liss.sb

1 Answers

2
votes

It's surprising, but you can check readOnly flag
It's sets to true if the component is read only

Ext.getCmp('myCmp').readOnly