How to populate a store with json string

  1. #1

    How to populate a store with json string

    I have this json string, how can I use it to load a store and show it on a grid panel?

    [
      {
        "guid": "1",
        "new": false,
        "Id": 1,
        "Name": "Isabelle V. Barton",
        "DOB": "1969-12-31T00:00:00",
        "Phone": "1868-6744",
        "EMail": "posuere.enim@nonluctus.edu",
        "readOnly": false
      },
      {
        "guid": "2",
        "new": false,
        "Id": 2,
        "Name": "Maxine X. Lang",
        "DOB": "1969-12-31T00:00:00",
        "Phone": "1190-9239",
        "EMail": "Suspendisse.sed@lorem.net",
        "readOnly": false
      },
      {
        "guid": "3",
        "new": false,
        "Id": 3,
        "Name": "Kylee W. Dillard",
        "DOB": "1969-12-31T00:00:00",
        "Phone": "1611-8498",
        "EMail": "magna@blanditNamnulla.edu",
        "readOnly": false
      }
    ]
    I tried this, but doesn't work

    store.loadData(json, true);
  2. #2
    Tried this ... but doesn't works too ...

    http://forums.ext.net/showthread.php...oBox-with-JSON

Similar Threads

  1. [CLOSED] Populate a ComboBox with JSON
    By Peter.Treier in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 07, 2014, 6:46 AM
  2. Replies: 2
    Last Post: May 05, 2012, 1:21 AM
  3. Replies: 4
    Last Post: Feb 01, 2011, 11:54 AM
  4. Populate tree with Json
    By mannyk in forum 1.x Help
    Replies: 0
    Last Post: Aug 05, 2010, 12:30 PM
  5. How to convert a store to json string?
    By mcdonald in forum 1.x Help
    Replies: 2
    Last Post: Apr 13, 2009, 12:14 PM

Tags for this Thread

Posting Permissions