码迷,mamicode.com
首页 > Web开发 > 详细

EXTJS4.2 级联 下拉

时间:2017-01-11 15:46:30      阅读:297      评论:0      收藏:0      [点我收藏+]

标签:list   als   uefi   com   load   style   模型   pre   oca   

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 级联 下拉

标签:list   als   uefi   com   load   style   模型   pre   oca   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!