stimpy
27 Jun 2012, 7:31 AM
I have a combo box
xtype:'combobox',
name:'myExampleName',
id:'myExampleId',
displayField:'dips',
valueField:'val',
validator: function(value){
console.log(value);
}
This outputs the displayField value NOT the value field value .
If the name id of the object is "myExampleId" and I do this
var myTestObject= Ext.getCmp(myExampleId);
console.log(myTestObject.getValue());
I get the valueField value as expected.
Can anyone explain why ? Validator seems to acting wrongly .
xtype:'combobox',
name:'myExampleName',
id:'myExampleId',
displayField:'dips',
valueField:'val',
validator: function(value){
console.log(value);
}
This outputs the displayField value NOT the value field value .
If the name id of the object is "myExampleId" and I do this
var myTestObject= Ext.getCmp(myExampleId);
console.log(myTestObject.getValue());
I get the valueField value as expected.
Can anyone explain why ? Validator seems to acting wrongly .