1. #1
    Ext User
    Join Date
    Nov 2009
    Posts
    5
    Vote Rating
    0
    aklahiri is on a distinguished road

      0  

    Question Unanswered: Grid Problem

    Unanswered: Grid Problem


    Hello,

    I have a situation regarding the Grid. Please let me know whats wrong with my following lines of coding.

    <html>
    <head>
    <title>Grid</title>
    <link rel="stylesheet" type="text/css" href="../extjs/resources/css/ext-all.css" />
    <script type="text/javascript" src="../extjs/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="../extjs/ext-all.js"></script>
    <script>
    Ext.onReady(function(){
    var store = new Ext.data.Store({
    data:
    [
    [ 1, "Office Space", "Mike Judge", "02/19/1990", 1, "Work Sucks" ],
    [ 2, "Super Troopers", "Jay Chandrasekhar", "02/15/2002", 1, "Altered State Police" ]
    ],
    reader: new Ext.data.ArrayReader({id:'id'},
    [ 'id', 'title', 'director', {name: 'released', type: 'date', dateFormat: 'm/d/Y'}, 'genre', 'tagline' ]
    });

    // add your data store here
    var grid = new Ext.grid.GridPanel({
    renderTo: Ext.getBody(), //document.body,
    frame:true,
    title: 'Movie Database',
    height:200,
    width:500,
    store: store,
    columns:
    [
    {header:"Title", dataIndex:'title'},
    {header:"Director", dataIndex:'director'},
    {header:"Released", dataIndex:'released', renderer: Ext.util.Format.dateRenderer('m/d/Y')},
    {header:"Genre", dataIndex:'genre'},
    {header:"Tagline", dataIndex:'tagline'}
    ]
    });
    });
    </script>
    </head>

    </html>

    Please help.

    Thanks & Regards.

  2. #2
    Ext User cerad's Avatar
    Join Date
    Dec 2007
    Posts
    226
    Vote Rating
    0
    cerad is on a distinguished road

      0  

    Default


    Load up firebug and look at the console. And get yourself a syntax color coding editor. Missing a left paren in your store.

    PHP Code:
    var store = new Ext.data.Store({
    data:
    [
    1"Office Space""Mike Judge""02/19/1990"1"Work Sucks" ],
    2"Super Troopers""Jay Chandrasekhar""02/15/2002"1"Altered State Police" ]
    ],
    reader: new Ext.data.ArrayReader({id:'id'},
    'id''title''director', {name'released'type'date'dateFormat'm/d/Y'}, 'genre''tagline' ]
    // Missing left paren
    }); 

  3. #3
    Ext User
    Join Date
    Nov 2009
    Posts
    5
    Vote Rating
    0
    aklahiri is on a distinguished road

      0  

    Arrow Thanks a lot , please help

    Thanks a lot , please help


    Hello cerad,

    Thanks a lot for the kind reply and help me to find out the solution.

    I will be obliged if you kindly reply on my following queries.

    1. How do I get a good editor to write Ext programs ?
    2. How to grab the Ext JS quickly ? Is there any good sites / tutorials ?
    3. How to install Firebug in a browser which is not connected with the internet ?

    I will look forward to your kind reply.

    Thanks & Regards.

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Answers
    1
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    1. Read this.
    2. Read this.
    3. Download the .xpi file and execute it on the PC without internet connection.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar