实际上很容易,定义监听事件,触发后更改下一级的数据源即可
/**
* 创建搜索表单
*/
function formPannel () {
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';
return new Ext.FormPanel({
labelWidth: 75, // label settings here cascade unless overridden
url:'save-form.php',
//frame:true,
border:false,
//title: 'Simple Form',
bodyStyle:'padding:5px;background-color:#d2e0f2;',
width: 500,
buttonAlign:'right',
labelAlign:'right',
items: [
{
xtype:'fieldset',
title:'查询条件',
autoHeight:true,
defaultType: 'textfield',
items:[
gameSelect = new Ext.fo