Hi Guys,

I tried to use a Treegrid in my MVC passtern with 4.1 Beta 2 and got the following problem:
As soon as I load my view with the treegrid, the following error raises:

treepanel_exception.jpg

In the background you can see the gridpanel that is loaded. I already tried different solutions, but can´t find the correct one till now.

Maybe it´s also an error in my json file, but I also can´t find one there.

Here is the code - I used the http://docs.sencha.com/ext-js/4-0/ex...ee/treegrid.js example to get started.

Model:

Code:
Ext.define('LT.model.Competition', {
    extend: 'Ext.data.Model',

    fields: [
        {name: 'task', type: 'string'},
        {name: 'user', type: 'string'}
    ],
    
    proxy: {
        type: 'ajax',
        url: 'treegrid.json',
        reader: {
            type: 'json',
            idProperty: 'id',
            root: 'data'
        }
    },
    folderSort: true

});

Store:


Code:
Ext.define('LT.store.Competition', {
    extend: 'LT.store.base.BaseTreeStore',
    requires: ['LT.model.Competition'],
    model: 'LT.model.Competition'

});
View:

Code:
Ext.define('LT.view.competition.List', {
    extend: 'Ext.tree.Panel',
    alias: 'widget.competition_list',
    title: __('Competitions'),
    requires: ['LT.store.Competition'],
    store: 'Competition',
    
    collapsible: true,
    useArrows: true,
    singleExpand: true,
    rootVisible: false,
    
    viewConfig: {
        loadMask: false
    },

    columns: [{
        xtype: 'treecolumn', //this is so we know which column will show the tree
        text: 'Name',
        flex: 1,
        dataIndex: 'task'
    },{
        text: 'Season',
        flex: 1,
        dataIndex: 'user'
    }],

Controller:

Not required for this example.

So if anyone has an idea - please be so kind to give me a hint
I'll start debugging the ExtJS core now...

Cheers,
Mike