new Ext.form.ComboBox({
id : 'cardtypecombo',
fieldLabel : '证件类型',
name : 'user.userIdtype',
emptyText : '选择证件类型..',
valueField : "typeId",
hiddenName : 'user.userIdtype',
displayField : "text",
tpl : '<tpl for="."><div class="x-combo-list-item" qtip="{text}">{text}</div></tpl>',
selectOnFocus : true,
editable : false,
triggerAction : 'all',
selectOnFocus : true,
typeAhead : true,
forceSelection : true,
width : 300,
value:1, // 设置默认值 该值指向valueField 列的值
mode : 'local',
store : new Ext.data.SimpleStore({
fields : ["typeId", "text"],
data : [
[1,
'身份证'],
[2, '学生证'], [3, '军官证'],
[4, '工作证'], [5, '其他']]
})
})
分享到:
相关推荐
ext,ext combobox,ext二级联动,ext combobox二级联动 ___本人的原则:上传好东西,但绝不便宜.因为自己的心血 ext combobox二级联动,ext ,ext combobox,combobox,combobox二级联动,ext 二级联动 groupCombo.on('...
主要介绍了EasyUI中combobox默认值注意事项,是个人在项目中遇到并解决的事宜,分享给大家,需要的朋友可以参考下
NULL 博文链接:https://dengli19881102.iteye.com/blog/1046190
全部代码 注意路径 博文链接:https://avs110.iteye.com/blog/1156428
NULL 博文链接:https://tianhengbao.iteye.com/blog/816208
ZK中combobox的设置,combobox默认选项的设置,
用Ext 2.0 combobox 做的省份和城市联动选择框的例程
NULL 博文链接:https://zhcl321.iteye.com/blog/1317526
用EXT来实现下拉框ComboBox 下拉框可以实现分页
该资源是war包,里面包括ComboBox中的各个参数, 详细讲解在我的文档中有
NULL 博文链接:https://dengli19881102.iteye.com/blog/904770
NULL 博文链接:https://yangming103.iteye.com/blog/967492
主要介绍了EasyUI Combobox设置默认值 获取text的方法,非常不错,具有参考借鉴价值,需要的朋友可以参考下
前台: 代码如下: var provinceStore = new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: basePath + “/stationManage/station... //选择省市 var provinceIDadd = new Ext.form.ComboBox({ anchor : ‘98%
ext关于form表单和combobox的例子