combobox级联查询 有2个combobox 选中左边的数据后 右边自动显示相对应的数据(数据从数据库中查出来的) 如何做到这样的级联查询(asp.net mvc框架) 望高手指点!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 就在第一个combobox的selectindexchange的事件中根据第一个选的主键来获取第二个的数据。 这个是省市区三级联动的,参考下{ layout: "form", items: { xtype: "combo", fieldLabel: "所在省", width: 130, store: new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: "" }), reader: new Ext.data.JsonReader({ id: "Key", root: "data" }, [{ name: "Key" }, { name: "Value"}]), baseParams: { action: "" }, autoLoad: true }), mode: "local", valueField: "Key", triggerAction: "all", readOnly: true, displayField: "Value", hiddenName: "ProvinceId", name: "ProvinceId", listeners: { select: function(combo, record, index) { form.findField("CityId").clearValue(); form.findField("CityId").getStore().load({ params: { args: record.id} }); } } }, columnWidth: .5},{ layout: "form", items: { xtype: "combo", fieldLabel: "所在市", width: 130, store: new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: "" }), reader: new Ext.data.JsonReader({ id: "Key", root: "data" }, [{ name: "Key" }, { name: "Value"}]), baseParams: { action: "" } }), mode: "local", valueField: "Key", triggerAction: "all", readOnly: true, displayField: "Value", hiddenName: "CityId", name: "CityId", listeners: { select: function(combo, record, index) { form.findField("CountyId").clearValue(); form.findField("CountyId").getStore().load({ params: { args: record.id} }); } } }, columnWidth: .5},{ layout: "form", items: { xtype: "combo", fieldLabel: "所在区", width: 130, store: new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: "" }), reader: new Ext.data.JsonReader({ id: "Key", root: "data" }, [{ name: "Key" }, { name: "Value"}]), baseParams: { action: "" } }), mode: "local", valueField: "Key", triggerAction: "all", readOnly: true, displayField: "Value", hiddenName: "CountyId", name: "CountyId" }, columnWidth: .5} windows.load不起作用 js控制Link标签的问题 一个菜鸟问题,大家帮帮忙啊! 请问能不能用在一个网页中的iframe框里取得其中网页里的form表单里的值 我想创建一个只有标题栏的页面,请问要如何设置网页属性! 怎样去除一段文字中的分号? 如何点击button之后把所在页面放大? 打开窗口问题 文本框的只读问题!!!老问题,没解决。请各位帮忙。 regex()的用法! 用JQ设置单选组不可用,然后用C#判断该单选组是否可用,怎么做呢 tablemenu中怎么获值
layout: "form",
items: { xtype: "combo", fieldLabel: "所在省", width: 130, store: new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: "" }),
reader: new Ext.data.JsonReader({ id: "Key", root: "data" }, [{ name: "Key" }, { name: "Value"}]), baseParams: { action: "" }, autoLoad: true
}),
mode: "local", valueField: "Key", triggerAction: "all", readOnly: true, displayField: "Value", hiddenName: "ProvinceId", name: "ProvinceId", listeners: {
select: function(combo, record, index) {
form.findField("CityId").clearValue();
form.findField("CityId").getStore().load({ params: { args: record.id} });
}
}
}, columnWidth: .5
},
{
layout: "form",
items: { xtype: "combo", fieldLabel: "所在市", width: 130, store: new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: "" }),
reader: new Ext.data.JsonReader({ id: "Key", root: "data" }, [{ name: "Key" }, { name: "Value"}]), baseParams: { action: "" }
}),
mode: "local", valueField: "Key", triggerAction: "all", readOnly: true, displayField: "Value", hiddenName: "CityId", name: "CityId", listeners: {
select: function(combo, record, index) {
form.findField("CountyId").clearValue();
form.findField("CountyId").getStore().load({ params: { args: record.id} });
}
}
}, columnWidth: .5
},
{
layout: "form",
items: { xtype: "combo", fieldLabel: "所在区", width: 130, store: new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: "" }),
reader: new Ext.data.JsonReader({ id: "Key", root: "data" }, [{ name: "Key" }, { name: "Value"}]),
baseParams: { action: "" }
}),
mode: "local", valueField: "Key", triggerAction: "all", readOnly: true, displayField: "Value", hiddenName: "CountyId", name: "CountyId"
}, columnWidth: .5
}