Ext.form.ComboBox 设置默认值 value 和text都有对应值
来源:互联网 发布:小米5数据网络不稳定 编辑:程序博客网 时间:2024/06/01 08:54
var store1=new Ext.data.Store({
proxy : new Ext.data.HttpProxy({url:'listQuestionType.action'}),
reader : new Ext.data.JsonReader({
totalProperty : 'totalProperty',root : 'root'},
[{name : 'id',type : 'int'},
{name : 'name',type : 'string'}
],['id','name'])
});
store1.load();
var typecombo=new Ext.form.ComboBox({
id:'typeco',
fieldLabel: '问题类型',
width:127,
//emptyText : '请选择项目类型',
hiddenName: 'question.type.id',
valueField :'id',
displayField: 'name',
forceSelection :true,
lazyInit:false,
editable : false,
store : store1 ,
triggerAction: 'all'
});
store1.on('load', function() {
typecombo.setValue(1); //这个值在store中应该存在
});
- Ext.form.ComboBox 设置默认值 value 和text都有对应值
- Ext.form.ComboBox 设置默认值为第一个值
- ext combobox取value和text
- Ext ComboBox 默认值的设置
- easyUI对combobox设置value和text
- Ext.form.ComboBox 获取选中的Value值
- form的text设置默认值
- ext ComboBox 设置默认值为第一个值
- combobox 添加value值和Text值
- easyui combobox设置默认值 获取text
- winform中的ComboBox同时设置text和value的方法
- ComboBox怎么不绑定而设置Text和Value
- Ext.form.ComboBox 取值
- easyui combobox text与value设置不同的值
- ext combobox默认值
- bcb combobox 加载text 和value
- Ext.form.ComboBox tip
- Ext.form.ComboBox
- 解决VML遭遇IE8和XHTML DOCTYPE时不能运行的问题
- Bash 实例,第一部分-Bourne again shell (bash) 基本编程
- 数据库设计准则(第一、第二、第三范式说明)
- WinForm打包
- bit_cast
- Ext.form.ComboBox 设置默认值 value 和text都有对应值
- PHP 源代码分析
- 【我所認知的BIOS】—>PCI 配置空間拾趣
- Internet Antivirus
- DISALLOW
- PL SQL Developer中文乱码问题如何解决
- Bash 实例,第 2 部分-更多的 bash 基本编程
- 简单servlet
- ASCII字符代码