1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    22
    Vote Rating
    0
    tmaiden is on a distinguished road

      0  

    Default MySQL into Grid3 Grouping Example

    MySQL into Grid3 Grouping Example


    Hello all,
    I have been searching the forum and even though I know this question already exists, I can not find an answer.
    I am trying to figure out how to import data from MySQL into the grid found in "ext-2.2/examples/grid/grouping.html".
    Within "grouping.js" there is
    Code:
    Ext.grid.dummyData = [
        ['3m Co',71.72,0.02,0.03,'4/2 12:00am', 'Manufacturing'],
        ['Alcoa Inc',29.01,0.42,1.47,'4/1 12:00am', 'Manufacturing'],
        ['Altria Group Inc',83.81,0.28,0.34,'4/3 12:00am', 'Manufacturing'],
    ...
    ];
    Obviously, this is where I would have json print the records retrieved from the mySQL database.
    Could someone please provide me with either a link, to a forum post which I cannot find, or the code which would achieve this. Thank you very much in advance!

  2. #2
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    There are tutorials / examples around showing how to do grids with MySQL. Why not start there?

Thread Participants: 1