I am using Sencha touch 2 to create a disabled selectfield, populated with default value. The problem is that if I disable the selectfield, then the value is not shown on iOS devices(it is blank and disabled)., but the value is shown properly on other platforms (android,chrome browser). How can I make the value visible? Here's my code for the selectfield.
xtype: 'selectfield',
disabled: true,
id: 'lengthUnit',
label: 'Length unit',
labelWidth: '35%',
labelWrap: true,
name: 'lengthUnit',
options: [
{
text: 'km',
value: 'km'
},
{
text: 'mi',
value: 'mi'
}
The value is set by calling setRecord function on the parent container. The values populate properly if the selectfield is not disabled. This problem occurs only on iOS devices!