combox 已经加载了store里面的值,但选中store第一条数据的时候文本框中没有显示选中的displayfied,到底是那出问题了呢{
xtype : 'combo',
name : 'FSZT',
id : 'FSZT',
mode : 'local',
fieldLabel : '发送状态',
store : FSZT_Store,
labelWidth : 60,
displayField : 'C_GGZT',
valueField:'N_GGZT',
width : 140,
emptyText : '-请选择-',
listeners : {
expand :function(combox){
combox.reset();
},
select:function(combox,record,index){
combox.setValue(FSZT_Store.getAt(index).get('N_GGZT'));
}
}
}ext3.2 combox不显示选中的数据
xtype : 'combo',
name : 'FSZT',
id : 'FSZT',
mode : 'local',
fieldLabel : '发送状态',
store : FSZT_Store,
labelWidth : 60,
displayField : 'C_GGZT',
valueField:'N_GGZT',
width : 140,
emptyText : '-请选择-',
listeners : {
expand :function(combox){
combox.reset();
},
select:function(combox,record,index){
combox.setValue(FSZT_Store.getAt(index).get('N_GGZT'));
}
}
}ext3.2 combox不显示选中的数据
{
... ... select:function(combox,record,index){
combox.setValue(FSZT_Store.getAt(index).get('N_GGZT'));
}
... ...
}上面已经设置好了valueField和displayField,你再在这个select事件中写这个做什么呢,再说了,你要真需要做一些处理,哪能这样获取store对象(FSZT_Store?)
你把你的这个select事件去掉,看看是不是正常了