Friday 15 March 2013

performance - Simple dojo Tree with ObjectStore -


Can someone fix this simple dojo tree? This will work without the objectstore, but I need this store for further execution.

  myStore = new Observable (myStore); Var datastore = new dojo.data.ObjectStore ({objectStore: myStore}); // I need this datastore for further implementation. I var myModel = new dijit.tree.TreeStoreModel ({store: datastore, query: {id: 'world'}});   

Here you can search for it.

Since you are using the object store, I believe that you can create an objectstore model instead of a treestore model Required:

  / * var myModel = new TreeStoreModel ({store: myStore, // datastore, query: {id: 'world'}}); * / Var myModel = new objectstore model ({store: myStore, query: {id: 'world'}});   

Triestore Models and OneStore Model Classes are legacy models for dojo.data, while ostastoremodel is for you to use dojo.store.

See that this Bela works for you:

No comments:

Post a Comment