{
xtype:'combo',
name : 'policyId',
fieldLabel : 'policyTyep',
padding : 'padding-left: 20%',
displayField : 'analysisName',
valueField : 'analysisId',
queryMode : 'local',
//value:-1,
value: {analysisName:'Select..',
analysisId:0},
store : policyDetailTypeStore
}
If I the policyDetailTypeStore is loaded ,but have no data.
then I want to show "Select..." in the combox.I also have configure the value as the code, but Can't work at all..
you should actually be using the emptyText config attribute for this
{
...
emptyText : 'Select ...',
...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With