EXTJS4.2 级联 下拉
Posted Greg
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了EXTJS4.2 级联 下拉相关的知识,希望对你有一定的参考价值。
items: [ { xtype: "fieldcontainer", layout: "hbox", items: [{ xtype: ‘combo‘, name: ‘ModelId‘, fieldLabel: ‘服务模型‘, store: comStore_CCServiceModel, valueField: "ModelId", displayField: "ModelName", mode: ‘remote‘,//local editable: false, triggerAction: ‘all‘, autoload: true, listeners: { "select": function (combo, store, index) { var CCTypeId = form.form.findField(‘CCTypeId‘); CCTypeId.clearValue(); var ModelId = form.form.findField("ModelId").getValue(); CCTypeId.store.load({ params: { ModelId: ModelId } }); } } }] },{ xtype: "fieldcontainer", layout: "hbox", items: [{ xtype: ‘combo‘, name: ‘CCTypeId‘, fieldLabel: ‘服务方式‘, store: comStore_CCServiceCategory, valueField: "CCTypeId", displayField: "CCTypeName", editable: false, triggerAction: ‘all‘, allowBlank: false, autoload: false, queryMode: ‘local‘, }] },
以上是关于EXTJS4.2 级联 下拉的主要内容,如果未能解决你的问题,请参考以下文章
本示例演示如何通过Struts2框架提供的标签,简单地实现级联下拉框