tags:

views:

218

answers:

1
A: 

looking at your screenshot - it seems you don't have a theme. you need to link to the appropriate css for one of dijit's themes and then add the theme name as a class to the body of your html.

also, you should probably only set the store for the StoreExplorer after you create the store.

you could avoid your xhrGet by giving the url to the store directly.

take a look at the store explorer test page if you haven't done so already.

Here is my Body Tag.<body class="tundra"> <div id="strexplr" dojoType="dojox.data.StoreExplorer" structure="view1" store="store" style="height:500px;width:100%;border:1px solid black"/> </body>
theartoftech
Here is my xhrGet..dojo.xhrGet({ url: "json.jsp", handleAs: "json", load: function(dataItems,ioArgs){ console.log('=popdiv='); console.log(dataItems); console.log('=popdiv='); console.log(dataItems.items[0].customer_name); store = new dojo.data.ItemFileReadStore(dataItems); return dataItems; }, error: function(type, data, evt){alert("error");} });
theartoftech
BTW.. console.log(dataItems.items[0].customer_name); returns Nancy.Again sorry for the formatting, I am pretty new to this particular forum, so I am on a learning curve as for the proper tags to use.
theartoftech
Oh and I get the same look without the data grid or the tree.
theartoftech