梦幻之旅

DEBUG - 天道酬勤

   :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  671 随笔 :: 6 文章 :: 256 评论 :: 0 Trackbacks
/** row1 start  */
                                
{
                                    layout : 'column',
                                    border : 
false,
                                    style : 'margin
-top:1px',
                                    items : [
{
                                            columnWidth : .
5,
                                            layout : 'form',
                                            border : 
false,
                                            items : [
{
                                                    id : 'expandPanelProvinceCombox',
                                                    name : 'province',
                                                    xtype : 'combo',
                                                    fieldLabel : '省份',
                                                    store : 
new Ext.data.SimpleStore({
                                                        proxy : 
new Ext.data.HttpProxy({
                                                                    url : 
"/data/initSel.jspa?mapName=provinceMap"
                                                                }
),
                                                        fields : [
"retrunValue""displayText"],
                                                        autoLoad : 
true
                                                    }
),
                                                    valueField : 
"retrunValue",
                                                    displayField : 
"displayText",
                                                    mode : 'remote',
                                                    forceSelection : 
true,
                                                    hiddenName : 'province',
                                                    editable : 
false,
                                                    triggerAction : 'all',
                                                    anchor : '
95%',
                                                    listeners:
{
                                                        select:
function(combo, record,index){
                                                            
var provinceCombox = Ext.getCmp("expandPanelProvinceCombox");
                                                            
var cityCombox = Ext.getCmp("expandPanelCityCombox");
                                                            cityCombox.clearValue();
                                                            cityCombox.store.load(
{params:{parameter : provinceCombox.getValue()}}); 
                                                        }

                                                    }

                                                }
]
                                        }
{
                                            columnWidth : .
5,
                                            layout : 'form',
                                            border : 
false,
                                            items : [
{
                                                    id: 
"expandPanelCityCombox",
                                                    name : 'city',
                                                    xtype : 'combo',
                                                    fieldLabel : '城市',
                                                    store : 
new Ext.data.SimpleStore({
                                                        proxy : 
new Ext.data.HttpProxy({
                                                                    url : 
"/data/initSel.jspa?mapName=cityMap"
                                                                }
),
                                                        fields : [
"retrunValue""displayText"],
                                                        autoLoad : 
false
                                                    }
),
                                                    valueField : 
"retrunValue",
                                                    displayField : 
"displayText",
                                                    mode : 'local',
                                                    forceSelection : 
true,
                                                    hiddenName : 'city',
                                                    editable : 
false,
                                                    triggerAction : 'all',
                                                    anchor : '
95%'
                                                }
]
                                        }
]
                                }
posted on 2011-01-14 00:35 HUIKK 阅读(1026) 评论(0)  编辑  收藏 所属分类: EXT

只有注册用户登录后才能发表评论。


网站导航: