ExtJs的combobox控件无法提交真实值,一直提交的是显示值.求解!
newExt.form.ComboBox({fieldLabel:'婚姻状况',hiddenName:'marriage',store:newExt.data.Simpl...
new Ext.form.ComboBox({
fieldLabel: '婚姻状况',
hiddenName:'marriage',
store: new Ext.data.SimpleStore({fields: ['v', 't'],data : [['0','0-已婚'],['1','1-未婚']]}) ,
valueField:'v',
displayField:'t',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
selectOnFocus:true,
editable:false
}) 展开
fieldLabel: '婚姻状况',
hiddenName:'marriage',
store: new Ext.data.SimpleStore({fields: ['v', 't'],data : [['0','0-已婚'],['1','1-未婚']]}) ,
valueField:'v',
displayField:'t',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
selectOnFocus:true,
editable:false
}) 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询