1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    3
    Vote Rating
    0
    xzoner is on a distinguished road

      0  

    Default Unanswered: Cannot read property 'isComponent' of undefined

    Unanswered: Cannot read property 'isComponent' of undefined


    Hi, I have the following problem:
    Code:
    Ext.define('app.view.Rubs.TreeStore', {    extend: 'Ext.data.TreeStore',
        requires: ['app.model.Rubs.RubModel'],
        model: app.model.Rubs.RubModel,
        folderSort: true,
        constructor: function(cfg) {
            var me = this;
            cfg = cfg || {};
            me.callParent([Ext.apply({
            proxy: {
                        type: 'ajax',
                        api: {
                            read: BaseURL+'server/Rubs/readRub.php',
                            create: BaseURL+'server/Rubs/createRub.php',
                            update: BaseURL+'server/Rubs/updateRub.php',
                            destroy: BaseURL+'server/Rub/deleteRub.php'
                        },
                        reader: {
                            type: 'json'
                        },
                        writer: {
                            type: 'json',
                            writeAllFields: false
                        },
                        listeners: {
                            exception: function(proxy, response, operation){
                                Ext.MessageBox.show({
                                    title: 'Error',
                                    msg: 'CODE 1001',
                                    icon: Ext.Msg.INFO,
                                    buttons: Ext.Msg.OK
                                });
                            },
                        }
            }
            }, cfg)]);
        }
    });
    ----------------------------------------
    Code:
    Ext.define('app.view.Rubs.TreePanel', {
        extend: 'Ext.tree.Panel',
                id: 'TreePanel',
                title: 'Categories',
                width: 500,
                height: 300,
                collapsible: true,
                closable: false,
                useArrows: true,
                rootVisible: false,
                store: new app.view.Rubs.TreeStore(),
                multiSelect: true,
                singleExpand: false,
                stateful: true,
                autoscroll: true,
                columns: [{
                    text: '#',
                    sortable: true,
                    dataIndex: 'id',
                    width: 30
                },{
                    xtype: 'treecolumn',
                    text: 'title',
                    flex: 2,
                    sortable: true,
                    dataIndex: 'title',
                    editor: {
                        allowBlank: false
                    }//end editor
                }]
        });
    I'm doing and I get an error...

    Code:
    ...
    region: 'center',
    xtype: 'tabpanel',
    items:[new app.view.Rubs.TreePanel()]
    ...
    Help please! Thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,801
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You shouldn't create an instance and place it on the prototype like that.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,585
    Answers
    540
    Vote Rating
    322
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    If you still need help could you please post the full stacktrace, including line numbers, plus details of exactly which ExtJS version you're using so that we can cross-reference the stacktrace?

    I would also strongly recommend you to try simplifying your test cases before posting to the forums. Most of the config options you've specified on your tree could be safely removed and it would make it much easier to try to isolate the actual cause of the problem.

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi