Hi,
I want to create a dijit Tree. The examples in the book show how to do it by creating an additional file with JSON data.
http://dojotoolkit.org/book/book-dojo/part-2-dijit-dojo-widget-library/a...
I dont want to create an additional file. Is there an inline way of creating a data store? The comment at the end of the following page shows one method, but that is not working for me (I get dojo.data.ItemFileReadStore is not a constructor and this.store has no properties as errors).
http://dojotoolkit.org/book/book-dojo/part-2-dijit-dojo-widget-library/a...
Can someone help me here.
thanks
Nilesh

If you are getting "is not a
If you are getting "is not a constructor", it is probably fixed by adding the dojo.data.ItemFileReadStore to the dojo.requires section.
dojo.require("dojo.data.ItemFileReadStore");I figured out what is the
I figured out what is the reason, I had to put this in dojo.addOnLoad() to give dojo time to load before the store is initialized.
The problem however is that the Tree widget must be parsed only after the store loads, which means, I can not use the Tree widget markup. I must create the Tree programmatically.