combo控件的定义:
items: [
{
xtype: 'combo',
id: "cbdomain",
x: 60,
y: 10, //27
width: 120,
editable: false,
store:getAllDomainstore,
mode: 'remote',
valueFiled: 'domdesc',
displayField:'domdesc',
allowBlank: false,
enabled:false,
triggerAction: "all",
selectOnFocus : true,
forceSelection : true
}
]
添加select方法:
Ext.ComponentMgr.get("cbdomain").on('select',function (){
var domainValue = Ext.ComponentMgr.get("cbdomain").getValue();
var userName = Ext.ComponentMgr.get("cusername").getValue();
casestore.baseParams={
webAction:'getAllCases',
username:userName,
domain: domainValue,//Ext.ComponentMgr.get('cbdomain').getValue(),
phrase: Ext.ComponentMgr.get('phraseSearch').getValue(),
logicForm: Ext.ComponentMgr.get('logicformSearch').getValue(),
ignoreconflict:'true',
start: 0,
limit: 30
};
casestore.load();
});
分享到:
相关推荐
Extjs DateField控件 - 只选择年份(找了很久发现网上只有选择年月的控件,于是基于extjs年月控件设计了只选择年份的控件)
xtype : 'jxcombo' //配置项 jxValueField:要获取值得字段名称,默认null //公共方法 getJXValue():返回自定义字段的值,如果没有自定义字段,则等价Ext.form.Combo类的getValue()方法
Extjs4下拉菜单中用Grid显示,有单选,和多选两个控件,完美通用代码控件,绝对让你好用,值得收藏^-^
extjs时间空间精确秒
NULL 博文链接:https://init-since.iteye.com/blog/2095766
extjs控件,是本科的毕业设计,最后获得优秀,老师评价非常好。主要有图表控件、一级、二级、三级联动下拉列表框控件
自己新写的extjs年份控件,直接new Ext.ux.MyYear 即可使用
Extjs4下拉树菜单 ComboBoxTree 支持单选和多选并且支持展开选中指定节点的通用控件 在项目中已经成熟运用 值得收藏和运用
extjs自定义控件extjs自定义控件extjs自定义控件extjs自定义控件extjs自定义控件extjs自定义控件extjs自定义控件
extjs 微调控件,时间微调控件,微调,javascript 微调 v2.0以上都可以用!!!
extjs的年月选择控件,主要针对原有的extjs Datefield控件的基础上增加了插件
extjs 时间控件
该资源主要展示了在Extjs6中Combobox控件实现下拉选择多个数据的功能
Extjs 下拉列表
extjs ip控件 extjs ip控件 extjs ip控件 extjs ip控件 extjs ip控件
一个extjs的分页控件,就是可以选择一页显示多少条记录,该控件非常灵活,便于集成
ExtJs图片按钮控件:设置文字、文字颜色、背景图片、是否可用
可以动态的新增和删除Ext控件,这里支持的上传控件的新增和删除。
Extjs 下拉树 下拉多选树 支持多选 全选/全不选 下拉多选框