Hi there,
got some problems filling a Tree Store by xml using the XmlReader.
Code:
Tree tree = new Tree();
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,"xml/readEPG.xml");
final HttpProxy proxy = new HttpProxy(builder);
ModelType type = new ModelType();
type.root = "demo";
type.recordName = "item";
type.addField("title");
type.addField("starttime");
// need a loader, proxy, and reader
XmlReader reader = new XmlReader(type);
final BaseTreeLoader loader = new BaseTreeLoader(proxy, reader);
final TreeStore<ModelData> store = new TreeStore<ModelData>(loader);
TreeBinder binder = new TreeBinder(tree, store);
binder.setAutoLoad(true);
binder.setDisplayProperty("title");
I tried this with a ListStore and a ListStoreLoader, it works: store.getCount() > 0
But what do I have to change to fill the TreeStore? (store.getChildCount() = 0
)