当前位置:编程学习 > C#/ASP.NET >>

请教一个Ext.Net的问题

本人最近用ext.net,使用GridPanel显示数据的时候遇到一个问题,现在有一列下拉框是根据该行主键显示不同的数据,在以前GridView里面是itemdatabind里面写绑定,但是在ext.net不知什么地方写? --------------------编程问答-------------------- API里应该有GridPanel嵌入下拉

Ext.define('ctiWsSort', {   
    extend: 'Ext.data.Model',   
    fields: [   
            { type: 'string', name: 'Id' },   
            { type: 'string', name: 'Name' }   
           ]   
    });   
     
            wsStore = Ext.create('Ext.data.Store', {   
                model: 'ctiWsSort',   
                proxy:   
                 {   
                     type: 'ajax',   
                     url: 'Data/WebServiceComboxData.json',   
                     reader: { type: 'json', root: 'data' },   
                     fields: ['Id', 'Name']   
                 },   
                listeners:   
                    {   
                        'load': function (me, record, successful) {   
                            if (successful) {   
                                var combSort = Ext.getCmp('ctcEditTableName');   
                                combSort.setValue(combSort.getValue());   
                            }   
                        }   
                    },   
                autoLoad: true   
            });   
                    {   
                        xtype: 'combo',   
                        fieldLabel: 'Web Service接口',   
                        allowBlank: false,   
                        blankText: "此项不能为空",   
                        id: 'ctiEidtWebServie',   
                        name: 'wsName',   
                        typeAhead: true,   
                        displayField: "text",   
                        valueField: "value",   
                        queryMode: 'local',   
                        store: new Ext.data.SimpleStore({   
                            fields: ["text", "value"],   
                            data: [["热点新闻接口", "1"], ["产品库存接口", "2"], ["新闻维护接口", "3"]]   
                        }),   
                        listeners: {   
                            "select": function (combo, record, index) {   
                                alert(combo.value);   
                                wsStore.proxy.url = 'Data/WebServiceComboxData2.json';   
                                wsStore.load();   
                            }   
                        }   
                    },   
                    {   
                        xtype: 'combo',   
                        fieldLabel: "数据库表名",   
                        blankText: "此项不能为空",   
                        allowBlank: false,   
                        id: "ctcEditTableName",   
                        name: "TableName",   
                        displayField: "Name",   
                        valueField: "Id",   
                        queryMode: 'local',   
                        typeAhead: true,   
                        store: wsStore   
                    }
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,