首页 > Web开发 > 详细

EXTJS4.2 级联 下拉

时间:2017-01-11 15:43:56      阅读:296      评论:0      收藏:0      [点我收藏+]
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 级联 下拉

原文:http://www.cnblogs.com/foreverfendou/p/6273842.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!