PDA

View Full Version : setEnabled does not set the readonly state of a form field



gishmo
15 Jan 2012, 2:42 AM
In GXT 2.x setting the enabled state of a field set also the readonly state.

The statement

textField.setEnabled(false)

sets the field to disable and readonly.

In GXT 3 the same statement sets only the the field to disable, but did not change the readonly state. you have to make an extra call with textField.setReadOnly(true);

Is this a bug or a feature?

gishmo
18 Jan 2012, 2:00 PM
Update:
Using setEnable(false) in GWT makes a textbox also readonly.

I think GXT should behave in the same way.