title: How to use the Kendo DataSource class to access a local json file
body: <p>Our project uses the SPA's "Hot Towel" template, which includes the Durandal framework.</p>
  
  <p>We're also using Telrik's Kendo UI, and I'm having trouble using the DataSource widget to simply read in a local json formatted file from my project folder.</p>
  
  <p>I'd like to read a test data file from either my "app\app_data\" folder to my "app\viewmodels" folder.</p>
  
  <p>Of course if I hard code my data into the js function it works fine. Like this for example:</p>
  
  <pre><code>var ds2 = new kendo.data.DataSource({
          data:
              [{  data here" }];
             });
  </code></pre>
  
  <p>ds.read()</p>
  
  <p>However, trying to read from local project folder will not work. I'd like to simply mockup some test data while developing.
  Your advice would be appreciated.</p>
  
  <pre><code>var ds = new kendo.data.DataSource({
          transport: {
              **read**: {
                  url: "PositionsTestData.json",    // "../app/app_data/PositionsTestData.json",
                  dataType: "json"
              }
          }
      });
      ds.read();          // in console, ds.data is showing 0 records.
  </code></pre>
  
  <p>I'm also trying a std jquery ajax get:</p>
  
  <p>var jq = $.ajax({
              url: "app/viewmodels/PositionsTestData.json",
              type: "get",
              dataType: "json",
              contentType: 'application/json'
          });</p>
  
  <p>I'm seeing 404 NOT FOUND in Chrome inspector tool, under Network tab.</p>
  
  <p>thank you.
  Bob </p>