构造extjs两级联动comBox
2011-12-12 16:23
134 查看
{ columnWidth: .25, layout: "form", items: [{ xtype: 'combo', fieldLabel: "区域", editable: false, //是否允许输入 hiddenName: 'quyu', store: areaStore, mode: 'remote',//第一个combo为remote triggerAction: 'all', emptyText: '请选择', width: 100, displayField: 'param_value', allowBlank: false, blankText: "参数不允许为空", listeners: { select: function (combo) { var quyu = form.getForm().findField("quyu").getValue(); form.getForm().findField("Name").clearValue(); //可以实现当队下拉值变更时,清空从动combo下拉选项中的值 ProjectStore.load({ params: { quyu: quyu} });//加载第二个combo的数据源 } } }] }, { columnWidth: .25, layout: "form", items: [{ xtype: 'combo', fieldLabel: "选择项目", editable: false, //是否允许输入 hiddenName: 'Name', store: ProjectStore,//数据源 mode: 'local',//第二个combo为local triggerAction: 'all', emptyText: '项目名称', width: 100, displayField: 'name', allowBlank: false, blankText: "参数不允许为空" }] }
相关文章推荐
- 构造extjs两级联动comBox
- ComBox 控件的两级联动
- Combox两级联动会经常出现的错误
- 实现外卖选餐时两级tableView联动效果
- ListView两级联动
- 【代码】js+php 如何实现select 两级联动+数据读取
- 两级联动select刷新后其值保持不变的实现方法
- Js实现两级下拉联动(非异步方式)
- Ajax数据库两级联动菜单(SQLServer版)(转载)
- Dedecms联动类型两级变一级的方法
- asp.net mvc 两级分类联动方法示例
- ajax实现无刷新两级联动DropDownList
- 用vue实现两级联动select
- NET:异步刷新,dropdownlist两级联动, Triggers
- 两级联动选择表单代码
- 安卓ListView选中后保持高亮状态,且两级联动带图标
- 安卓ListView选中后保持高亮状态,且两级联动带图标(升级版)
- 两级联动select刷新后其值保持不变的实现方法
- ASP.NET中DropDownList和ListBox实现两级联动功能