1. #1
    Ext JS Premium Member
    Join Date
    Dec 2007
    Posts
    213
    Vote Rating
    0
    sanjshah is on a distinguished road

      0  

    Default Array Grid Example

    Array Grid Example


    Hi, I'm using the 'Array Grid' example to understand how the grid work, I have changed some of the testing to the following:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Array Grid Example</title>
    <link rel="stylesheet" type="text/css" href="exttools/ext-2.0/resources/css/ext-all.css" />
    <script type="text/javascript" src="exttools/ext-2.0/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="exttools/ext-2.0/ext-all.js"></script>
    
    <script type="text/javascript">
    /*
     * Ext JS Library 2.0
     * Copyright(c) 2006-2007, Ext JS, LLC.
     * licensing@extjs.com
     * 
     * http://extjs.com/license
     */
    
    Ext.onReady(function(){
    
        Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
    
        var myData = [
    		['Company1','user2@company1.com','Surname1','Firstname1','asdase'],
    		['Company2','user1@company2.com','Surname2','Firstname2','gdfewe']
        ];
    	
    
        // create the data store
        var store = new Ext.data.SimpleStore({
            fields: [
               {name: 'company'},
               {name: 'email'},
               {name: 'surname'},
               {name: 'firstname'},
               {name: 'password'}
            ]
        });
        store.loadData(myData);
    
        // create the Grid
        var grid = new Ext.grid.GridPanel({
            store: store,
            columns: [
                {id:'company',header: "Company", width: 160, sortable: true, dataIndex: 'company'},
                {header: "Email", width: 75, sortable: true, dataIndex: 'email'},
                {header: "Surname", width: 75, sortable: true, dataIndex: 'surname'},
                {header: "Firstname", width: 75, sortable: true, dataIndex: 'firstname'},
                {header: "Password", width: 85, sortable: true, dataIndex: 'password'}
            ],
            stripeRows: true,
            autoExpandColumn: 'company',
            height:400,
            width:600,
            title:'Users in System'
        });
    
        grid.render('grid-example');
    
        grid.getSelectionModel().selectFirstRow();
    });
        
    </script>
    <link rel="stylesheet" type="text/css" href="exttools/ext-2.0/examples/grid/grid-examples.css" />
    <link rel="stylesheet" type="text/css" href="exttools/ext-2.0/examples/examples.css" />
    <script type="text/javascript" src="exttools/ext-2.0/examples/examples.js"></script>
    </head>
    <body>
    <h1>&nbsp;</h1>
    </body>
    </html>
    All works well except when I try to drag a column, and when I click the dropdown arrow, I can see the menu and hide unhide columns but get the following error message:

    Object doesn't support this object or method

    This error only appears in IE

    Any ideas?

    Thanks
    Last edited by sanjshah; 10 Dec 2007 at 10:27 AM. Reason: Checked other browsers

  2. #2
    Ext JS Premium Member Joyfulbob's Avatar
    Join Date
    Feb 2008
    Posts
    176
    Vote Rating
    1
    Joyfulbob is on a distinguished road

      0  

    Default I wish we could get a reply to this one...

    I wish we could get a reply to this one...


    Hi,

    I'm experiencing the same thing; I've tried to change /remove a lot of code to no avail.

    On top of it, IE doesn't tell you what file the error is in - just the line # and character #.

    What tools does ExtJS recommend? I'v eused JSLIST to correct extra commas, etc.

    App runs great in FF.

    Thanks in advance!
    Bob

Thread Participants: 1

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