日期:2014-05-16  浏览次数:20386 次

Extjs4.2关于combobox通过direct绑定服务器数据
有朋友通过Ext.data.DirectStore给combobx绑定过数据么
代码如下
                           xtype: 'combobox',
                            id: 'ctlEMS_NO',
                            editable: true,
                            queryMode: 'local',
                            typeAhead: true,
                            selectOnFocus: true,
                            store: Ext.create('Ext.data.Store', {
                                model: 'dropModel',
                                proxy: {
                                    type: 'direct',
                                    directFn: app.Method.Code,

                                    reader: {
                                        type: 'json',
                                        root: 'data'