johnterran
30 Dec 2011, 10:26 AM
Hi,
I am trying to build a tree using TreeStore with proxy, but it is not working for me.
Ext.define('MyTreeStore', {
extend: 'Ext.data.TreeStore',
storeId: 'MyTreeStore',
root: {
expanded: true,
proxy: {
reader: 'json',
url: 'treedata.js'
}
}
});
// treedata.js
{
"children": [
{text: "A"},
{text: "B"},
{text: "C"}
]
}
What am I doing wrong?
Thanks
John
I am trying to build a tree using TreeStore with proxy, but it is not working for me.
Ext.define('MyTreeStore', {
extend: 'Ext.data.TreeStore',
storeId: 'MyTreeStore',
root: {
expanded: true,
proxy: {
reader: 'json',
url: 'treedata.js'
}
}
});
// treedata.js
{
"children": [
{text: "A"},
{text: "B"},
{text: "C"}
]
}
What am I doing wrong?
Thanks
John