GoPHP5 を使用して CodeIgnitor 1.7.4 で ExtJS 3.3.0 を使用しています
私がやろうとしていることは少し混乱しています:
プライマリ ItemSelector があります
複数の値を選択して次のボックスに移動したとき (2 番目のボックスに割り当てられたストア)
関連する結果を新しい itemSelector に取得するには、ajax またはプロキシ関数が必要です。
さらに単純化するには:
ItemSelector 1: (これらの値の両方を選択します)
米国 インド
ItemSelector 2: (両方の州を取得する必要があります) AL .. CA などとインドのすべての州または都市
私のコード:
{
xtype:'itemselector',
fieldLabel: 'Country',
name: 'country',
multiselects: [{
width: ".$width.",
height: ".$height.",
store: new Ext.data.ArrayStore({
fields: ['value','text'],
data : [".$data."]
}),
displayField: 'text',
valueField: 'value'
},{
store: [],
width: ".$width.",
height: ".$height."
}]
}
{
xtype:'itemselector',
fieldLabel: 'States',
name: 'states',
multiselects: [{
width: ".$width.",
height: ".$height.",
store: new Ext.data.ArrayStore({
fields: ['value','text'],
data : [".$data."]
}),
displayField: 'text',
valueField: 'value'
},{
store: [],
width: ".$width.",
height: ".$height."
}]
}