Extjs4 的ComboBox select 事件(event)的例子(代码)
来源:互联网 发布:海湾主机编程软件 编辑:程序博客网 时间:2024/04/28 05:34
Extjs4 的ComboBox select 事件(event)的例子(代码)
2014-01-08 11:05:13 来源: 评论:0 点击:4973
Extjs 4 的ComboBox select 事件(event)的例子(代码)
首先看Extjs4中ComboBox的select事件方法的定义: select : ( Ext.form.field.ComboBox combo, Array records, Object index )
Extjs4中ComboBox的select事件参数说明如下:
combo :Ext.form.field.ComboBoxThis combo boxrecord : ArrayThe selected recordseOpts : ObjectThe options object passed to Ext.util.Observable.addListener.ComboBox的select事件的使用代码如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Ext.onReady(
function
(){
var
task_list_data1=[[
'1'
,
'有效'
],[
'0'
,
'无效'
] ];
var
list_reader110=
"list_reader110"
;
Ext.define(list_reader110,{extend:
'Ext.data.Model'
, fields: [ {name:
'value'
},{name:
'text'
}]});
var
task_list_store1= Ext.create(
"Ext.data.ArrayStore"
, {model: list_reader110,data:task_list_data1});
var
task_list_select=Ext.create(
'Ext.form.field.ComboBox'
,{
name:
"isUse"
,hiddenName:
'isUse'
,id:
"isUseSelect"
,
editable:
false
,displayField:
'text'
,valueField:
'value'
,
store:task_list_store1,
typeAhead:
true
, forceSelection :
true
,
emptyText:
'请选择状态'
,allowBlank:
true
,
//因为data已经取数据到本地了,所以'local',默认为"remote",枚举完
selectOnFocus:
true
,triggerAction:
'all'
,queryMode:
'local'
,
width:120,blankText:
'请选择状态'
,
listeners:{
select:
function
(combo,record,opts) {
alert( record[0].get(
"value"
));
alert( record[0].get(
"text"
));
}
}
});
});
分享到: 收藏
相关热词搜索:Extjs4 ComboBox select 事件 event 例子 代码
上一篇:Extjs 3 的ComboBox select 事件(event)的例子(代码)
下一篇:(代码)Extjs4的Ext.grid.Panel的行双击事件事件itemdblclick rowdblclick
0 0
- Extjs4 的ComboBox select 事件(event)的例子(代码)
- ExtJS4 ComboBox选择第一个选项时不能触发select事件的处理
- Extjs4 combobox 的使用
- extjs4:代码实现comboBox选中事件
- select转combobox的extjs代码
- Extjs4.0 Combobox的使用
- Extjs4带清空功能的ComboBox
- select 经过 easyui combobox 渲染后的onchange事件
- extjs4.1:两个combobox的联动
- EXTJS4.x之combobox的使用
- ComboBox的SelectionChangeCommitted事件
- combobox引发的事件
- combobox的监听事件
- combobox的选择事件
- ComboBox的SelectionChanged事件
- event的使用例子
- Extjs4.0的事件机制
- jq的event事件
- 2016-01-20 FFC
- extjs combobox 如何获取点击事件
- Elasticsearch filter
- ios富文本自适应
- html 异步调用
- Extjs4 的ComboBox select 事件(event)的例子(代码)
- onclick onclientclick postback 机制
- ldp hello报文接收的处理流程
- 随笔
- Android :我的奇怪BUG:WindowManager$BadTokenException
- Android :我的奇怪BUG:WindowManager$BadTokenException
- INSERT小记(insert into select和not in,values括号里不能放select)
- 对大二上学期的总结
- Linux基础知识第二期《目录处理命令》