简体   繁体   English

ExtJs:grid.reconfigure错误“未捕获的TypeError:无法读取未定义的属性'getProxy'”

[英]ExtJs: grid.reconfigure Error “Uncaught TypeError: Cannot read property 'getProxy' of undefined”

im trying to build an dynamic Grid is it possible to create an store from 我试图建立一个动态的网格是否有可能从创建一个商店

var data = JSON.parse(response.responseText),
columns = data.columns;
var store = Ext.create('Ext.data.Store', {
    data: data
    })

cause i would like to reconfigure my grid which is displayed in window.js 因为我想重新配置在window.js中显示的网格

grid.reconfigure({
        columns: columns,
        store : store
    });

Here is %100 dynamic grid: Fiddle: https://fiddle.sencha.com/#fiddle/trn 这是%100动态网格:小提琴: https ://fiddle.sencha.com/#fiddle/trn

Ext.Ajax.request({
            url: 'users',
            success: function(response) {
                var resp = Ext.JSON.decode(response.responseText).records;
                var columnKeys = Object.keys(resp[0]);
                var store1 = Ext.create('Ext.data.Store', {
                    fields: columnKeys,
                    data : resp
                });
                var columnObjects = []
                Ext.each(columnKeys, function(key) {
                    columnObjects.push({
                        text: key,
                        dataIndex: key
                    });
                });
                var grid = Ext.create('Ext.grid.Panel', {
                    columns: columnObjects,
                    store: store1,
                    renderTo: Ext.getBody()
                }); 
            }

        });

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未捕获的TypeError:无法读取未定义的属性'getProxy' - Uncaught TypeError: Cannot read property 'getProxy' of undefined Grid.reconfigure在extjs中不起作用 - Grid.reconfigure not working in extjs ExtJs错误:未捕获TypeError:无法读取未定义的属性'removeCls' - ExtJs Error: Uncaught TypeError: Cannot read property 'removeCls' of undefined EXTJS 6 Modern:缓冲存储+网格:未捕获的TypeError:无法读取未定义的属性'length' - EXTJS 6 Modern: buffered store + grid: Uncaught TypeError: Cannot read property 'length' of undefined ExtJS:未捕获的TypeError:无法读取未定义的属性“作用域” - ExtJS: Uncaught TypeError: Cannot read property 'scope' of undefined Extjs 4.1:如此奇怪的错误:未捕获TypeError:无法读取未定义的属性'items' - Extjs 4.1: So strange error: Uncaught TypeError: Cannot read property 'items' of undefined ExtJS 5.1-带有gridfilters插件的网格在grid.reconfigure之后中断 - ExtJS 5.1 - Grid with gridfilters plugin breaks after grid.reconfigure Extjs5 treepanel [未捕获的TypeError:无法读取未定义的属性'create'] - Extjs5 treepanel [Uncaught TypeError: Cannot read property 'create' of undefined] extjs 4Uncaught TypeError:无法读取未定义的属性“ items” - extjs 4Uncaught TypeError: Cannot read property 'items' of undefined 如何解决错误“ ext-all.js Uncaught TypeError:无法调用未定义的方法'getProxy'”? - How can I resolve error 'ext-all.js Uncaught TypeError: Cannot call method 'getProxy' of undefined' ?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM