I am trying to use the treepanel but I have received some data from an external api in the following format (see below), basically it's a json array that will automatically return a array with companies (B & A and T & C below) and each company would have a number of employees as children.
I am unsure how to get this working in the treepanel. I need the company to be displayed as a row that can be expanded to show the children.
Does a standard store support this, is my data in the correct format. I am a little lost on this.
"B & A": [
{
"name": "Fred",
"code": "aan9"
},
{
"name": "Walter",
"code": "wxxs"
}
],
"T & C": [
{
"name": "mary",
"code": "assan9"
},
{
"name": "Bart",
"code": "sswxxs"
}
]