Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User
    Join Date
    Apr 2009
    Posts
    6
    Vote Rating
    0
    Qwerty123 is on a distinguished road

      0  

    Default Error: "Ext.grid.dummyData is undefined" Trying to implement Grid Example

    Error: "Ext.grid.dummyData is undefined" Trying to implement Grid Example


    Hello,

    I'm trying to implement the RowExpander grid example from the Gird Plugins section of the version 2.2 Samples. Can you please help me understand why I'm getting the error, "Ext.grid.dummyData is undefined" ?

    My grid opens up in the browsers and it has data in it, but I have the denoted error, and I don't get the "plus mark" image in the first column, that is suppose to expand the row and display the extra data. I assume the plus mark image might show up if I get the error cleared up.

    I greatly appreciate your assistance!

    Thank you,
    Qwerty123

    Code:
    /*
     * Ext JS Library 2.2.1
     * Copyright(c) 2006-2009, Ext JS, LLC.
     * licensing@extjs.com
     *
     * http://extjs.com/license
     */
    Ext.onReady(function(){
    
        Ext.QuickTips.init();
        
        var xg = Ext.grid;
        
        var jsonStore = function(data){
            return new Ext.data.Store({
                autoLoad: true,
                proxy: new Ext.data.MemoryProxy(data),
                reader: new Ext.data.JsonReader()
            });
        };
        
        Ext.Ajax.request({
            url: 'sample.aspx',
            method: 'GET',
            success: function(result, request){
                var data = Ext.decode(result.responseText);
                var dummyData = new jsonStore(data);
                
                ////////////////////////////////////////////////////////////////////////////////////////
                // Grid 1
                ////////////////////////////////////////////////////////////////////////////////////////
                // row expander
                var expander = new xg.RowExpander({
                    tpl: new Ext.Template('<p><b>Company:</b> {company}</p><br>', '<p><b>Summary:</b> {desc}</p>')
                });
                
                var grid1 = new xg.GridPanel({
                    store: dummyData,
                    columns: [{
                        header: 'mdo_id',
                        dataIndex: 'MDO_ID'
                    }, {
                        header: 'mdo_type_cd',
                        dataIndex: 'MDO_TYPE_CD'
                    }, {
                        header: 'mdo_inqry_type_cd',
                        dataIndex: 'MDO_INQRY_TYPE_CD'
                    }, {
                        header: 'mdo_prdctn_efctv_dt',
                        dataIndex: 'MDO_PRDCTN_EFCTV_DT'
                    }, {
                        header: 'mdo_prdctn_end_dt',
                        dataIndex: 'MDO_PRDCTN_END_DT'
                    }, {
                        header: 'mdo_nm',
                        dataIndex: 'MDO_NM'
                    }, {
                        header: 'mdo_imdt_ownr_nm',
                        dataIndex: 'MDO_IMDT_OWNR_NM'
                    }],
                    viewConfig: {
                        forceFit: true
                    },
                    width: 600,
                    height: 300,
                    plugins: expander,
                    collapsible: true,
                    animCollapse: false,
                    title: 'Expander Rows, Collapse and Force Fit',
                    iconCls: 'icon-grid',
                    renderTo: document.body
                });
                
                
                // add in some dummy descriptions
                for (var i = 0; i < Ext.grid.dummyData.length; i++) {
                    Ext.grid.dummyData[i].push('This is a test.');
                };
                        }
        });
        
    });

  2. #2
    Ext User
    Join Date
    Apr 2009
    Posts
    6
    Vote Rating
    0
    Qwerty123 is on a distinguished road

      0  

    Default


    Please tell me if I need to provide more information in order for you to help me.

    Thank you,
    Qwerty123

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    3
    tryanDLS is on a distinguished road

      0  

    Default


    Well since you didn't include the dummyData var, it's not going to be there. You can't just cut&paste code from examples without understanding what's going on. If you still don't get it, I'd suggest searching the examples for dummyData and see where it's defined.

Thread Participants: 1