-
27 Feb 2012 2:37 PM #1
NestedList, TreeStore and Json - Cannot call method 'beginEdit' of null
NestedList, TreeStore and Json - Cannot call method 'beginEdit' of null
This error occurs on init of a Sencha Designer created app
onProxyLoad: function(operation) {Code://NestedList: Ext.define('x.view.ui.Menu', { extend: 'Ext.dataview.NestedList', config: { store: 'MainMenuStore', toolbar: { xtype: 'toolbar', docked: 'top', ui: 'light' } } }); //MODEL: Ext.define('x.model.Menu', { extend: 'Ext.data.Model', config: { fields: [ { name: 'text' }, { name: 'url' } ] } }); //STORE: Ext.define('x.store.base.MainMenuStore', { extend: 'Ext.data.TreeStore', requires: [ 'x.model.Menu' ], config: { model: 'x.model.Menu', storeId: 'MainMenuStore', proxy: { type: 'ajax', url: 'mainmenu.json', reader: { type: 'json', rootProperty: 'items' } } } }); //JSON: { "text":"Main Menu", "items":[ { "text":"test", "leaf":false, "url":"test" } ] }
var me = this,
records = operation.getRecords(),
successful = operation.wasSuccessful(),
node = operation.getNode();
node.beginEdit();
Uncaught TypeError: Cannot call method 'beginEdit' of null
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote