Oct 07, 2015, 10:24 PM
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 workstore.loadData(json, true);