1. #1
    Sencha User
    Join Date
    Oct 2009
    Posts
    40
    Vote Rating
    0
    w_goldman is on a distinguished road

      0  

    Default Getting started tutorial, grid data does not show, two rows appear, are blank.

    I can double click cells and add data.

    Is this a 5.0 versus 4.2 thing?

    If I change the html file to point to the 5.0 cdn stuff it works.

    Code:
    <!DOCTYPE html>
    <html>
    <head>
    <title>Welcome to Ext JS!</title>
    <link rel="stylesheet" type="text/css" href="C:\tools\ext-4.2.0.663\resources\ext-theme-neptune\ext-theme-neptune-all.css">
    <script type="text/javascript" src="C:\tools\ext-4.2.0.663\ext-all.js"></script>
    <script type="text/javascript" src="C:\tools\ext-4.2.0.663\ext-theme-neptune.js"></script>
    
    
    <script type="text/javascript" src="app.js"></script>
    </head>
    <body></body>
    </html>
    here is my app.js
    Ext.application({
    name : 'MyApp',
    
    
    launch : function() {
    
    
    Ext.widget({
    renderTo : Ext.getBody(),
    xtype : 'grid',
    title : 'Grid',
    width : 650,
    height : 300,
    plugins : 'rowediting',
    store : {
    fields : [ 'name', 'age', 'votes', 'credits' ],
    data : [
    [ 'Bill', 35, 10, 427 ], [ 'Fred', 22, 4, 42 ]
    ]
    },
    columns: {
    defaults: {
    editor : 'numberfield',
    width : 120
    },
    items: [
    { text: 'Name', dataIndex: 'name', flex: 1, editor: 'textfield' },
    { text: 'Age', dataIndex: 'age' },
    { text: 'Votes', dataIndex: 'votes' },
    { text: 'Credits', dataIndex: 'credits' }
    ]
    }
    })
    }
    });
    -->

  2. #2
    Sencha User
    Join Date
    Oct 2009
    Posts
    40
    Vote Rating
    0
    w_goldman is on a distinguished road

      0  

    Default

    Should this work in version 4.2?
    -->

  3. #3
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    145
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default

    Serve the files over http rather than the filesystem
    Aaron Conran
    @aconran
    -->

Thread Participants: 1