title: add data to dojo datagrid
body: <p>I have a couple of questions related to dojo. Firstly I have an example I copied from online and ran it and it works perfectly. By the way I am working on a web application in visual studio 2010. It runs fine but my question is that I use the urls (version 1.5) from the ajax.googleapis.com and it works but as soon as I use the src="/folder/dojo.js.uncompressed.js" with the local copy (version 1.7.1) in my folder in my web app, it doesn't work. Any ideas about this.</p>
  
  <p>The second question is using the datagrid example but instead of hard coding the values for the datagrid; I want to pass the results of a sql query from a database to the datagrid. Does anyone have ideas on this?</p>
  
  <p>Here is code showing an attempt to use a locally stored file:</p>
  
  <pre><code>&lt;title&gt;The Simplest Dojo DataGrid Example of All Time&lt;/title&gt;
  &lt;link rel="stylesheet" type="text/css"
     href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css" /&gt;
  
  &lt;link rel="stylesheet" type="text/css"
    href="/Styles/Grid.css" /&gt;
  
  &lt;link rel="stylesheet" type="text/css"
  href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojox/grid/
    resources/claroGrid.css" /&gt;
  
   &lt;/head&gt;
   &lt;body class="claro"&gt;
   &lt;div style="width: 600px; height: 200px"&gt;
      &lt;table id="billsGrid" dojoType="dojox.grid.DataGrid"&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th field="number"&gt;Number&lt;/th&gt;
                  &lt;th field="name"&gt;Name&lt;/th&gt;
                  &lt;th field="position"&gt;Position&lt;/th&gt;
                  &lt;th field="victories" width="180px"&gt;Super Bowl Victories&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
      &lt;/table&gt;
    &lt;/div&gt;
  
    &lt;script type="text/javascript"
      src="/Styles/dojo.js.uncompresses.js"
         djConfig="parseOnLoad:true"&gt;&lt;/script&gt;
  
    &lt;script type="text/javascript"&gt;
      dojo.require("dojox.grid.DataGrid");
      dojo.require("dojo.data.ItemFileReadStore");
    &lt;/script&gt;
  
    &lt;script type="text/javascript"&gt;
       dojo.ready(function () {
       var theGreatestTeamOfAllTime = {
          items: [{
              "number": "12",
              "name": "Jim Kelly",
              "position": "QB",
              "victories": "0"
          },
               {
                   "number": "34",
                   "name": "Thurman Thomas",
                   "position": "RB",
                   "victories": "0"
               },
               {
                   "number": "89",
                   "name": "Steve Tasker",
                   "position": "WR",
                   "victories": "0"
               },
          {
              "number": "78",
              "name": "Bruce Smith",
              "position": "DE",
              "victories": "0"
          }
             ],
          identifier: "number"
       };
  
       var dataStore =
      new dojo.data.ItemFileReadStore(
      { data: theGreatestTeamOfAllTime }
      );
      var grid = dijit.byId("billsGrid");
      grid.setStore(dataStore);
    });
    &lt;/script&gt;
  
    &lt;/body&gt;
    &lt;/html&gt;
  </code></pre>
  
  <p>This does not work with jscript errors cropping up.</p>
  
  <p>could not load dojox/grid/DataGrid.js</p>