Hello,
as far as I know all extjs controls use processRawValue to make some manipulation for new data when control changes its value. I have found that processRawValue isn't invoked for combobox without validation.
Code:
var states = Ext.create('Ext.data.Store', {
fields: ['abbr', 'name'],
data : [
{"abbr":"AL", "name":"Alabama"},
{"abbr":"AK", "name":"Alaska"},
{"abbr":"AZ", "name":"Arizona"}
]
});
Ext.create('Ext.panel.Panel', {
title: 'Contact Info',
width: 300,
bodyPadding: 10,
renderTo: Ext.getBody(),
items: [
{
xtype: 'textfield',
name: 'name',
fieldLabel: 'Name',
validateOnChange: false,
validateOnBlur: false,
processRawValue: function(value){
alert('Inside textfield\'s processRawValue'); //is processed
return this.callParent(value);
}
},{
xtype: 'combobox',
store: states,
fieldLabel: 'State',
queryMode: 'local',
displayField: 'name',
valueField: 'abbr',
validateOnChange: false,
validateOnBlur: false,
processRawValue: function(value){
alert('Inside combobox\'s processRawValue'); //isn't processed
return this.callParent(value);
}
}
]
});
Could you please consider such combobox's behavior. Is it correct or processRawValue should be invoked anyway?