title: Kendo UI Scheduler not binding resources properly
body: <p>I'm having trouble trying to get my KendoUI Scheduler resources to populate correctly. I haven't found a good example of how to bind a nested JSON object (in this case Task and User listed in the screenshot) to resources that are fetched.</p>
  
  <p>Also while running Fiddler, it seems like the resources listed below aren't even fetched from the web service. The documentation is super unclear on some of the specifics and I'm having a hard time finding the problem.</p>
  
  <p>The schedule actually pulls back all the SchedulerEvents (the JSON fetched below) and shows me events bound to the Schedule properly, just they have no resources attached. Right now all of my webservice calls are running off localhost so JSONP shouldn't be required yet as my service calls are all calling "localhost".</p>
  
  <p>I did find something similar to what I'm trying to do with projection of data <a href="http://docs.telerik.com/kendo-ui/api/framework/datasource#configuration-schema.parse" rel="nofollow noreferrer">here</a> via Telerik's documentation, but I haven't been able to figure out a good solution yet.</p>
  
  <p><strong>Edited</strong> : updated my question with individual DataSource code</p>
  
  <p><strong>Edited 2</strong> : I should also mention since posting this, the JSON screenshot isn't entirely accurate anymore as I've taken <code>ScheduledTaskId</code> and <code>UserId</code> (the two identifying properties of my Task and User resources I'm trying to add to appointments) and made that property available directly from my SchedulerEvent class to avoid nesting objects.</p>
  
  <h2>Javascript</h2>
  
  <pre><code>//Datasources code has been moved to here. Explicitly fetching data and assigning to Resources datasource properties
  
  $("#scheduler").kendoScheduler({
      date: new Date("@DateTime.Now.ToShortDateString()"),
      timezone: "Etc/UTC",
      views: [
          "day",
          { type: "week", selected: true },
          "month",
          "agenda"
      ],
      dataSource: {
  
          batch: true,
  
          transport: {
              read: {
                  url: "ServiceURI/Schedule/Get",
                  dataType: "json"
              },
              update: {
                  url: "",
                  dataType: "json"
              },
              create: {
                  url: "",
                  dataType: "json"
              },
              destroy: {
                  url: "",
                  dataType: "json"
              },
              parameterMap: function (options, operation) {
                  if (operation !== "read" &amp;&amp; options.models) {
                      return { models: kendo.stringify(options.models) };
                  }
              }
          },
  
          resources: [
              {
                  field: "userId",
                  title: "User",
                  dataTextField: "displayName",
                  dataValueField: "userId",
                  dataSource: userDataSource
              }
              {
                  field: "scheduledTaskId",
                  title: "Task",
                  dataTextField: "taskName",
                  dataValueField: "scheduledTaskId",
                  dataSource: taskDataSource
              }
          ],
          schema: {
  
              model: {
                  id: "shiftId",
                  fields: {
                      shiftId: {
                          from: "ShiftId",
                          type: "number"
                      },
                      title: {
                          from: "Title",
                          validation: { required: true } 
                      },
                      start: {
                          from: "Start",
                          type: "date",
                          validation: { required: true } 
                      },
                      end: {
                          from: "End",
                          type: "date",
                          validation: { required: true }
                      },
                      scheduledTaskId: {
                          from: "ScheduledTaskId",
                          type: "number"
                      },
                      userId: {
                          from: "UserId",
                          type: "number"
                      },
                      description: { 
                          from: "Description"
                      },
                      recurrenceId: { from: "RecurrenceID" },
                      recurrenceRule: { from: "RecurrenceRule" },
                      recurrenceException: { from: "RecurrenceException" },
                      isAllDay: { type: "boolean", from: "IsAllDay" } 
                  }
              }
          }
      }
  });
  </code></pre>
  
  <h3>Datasources</h3>
  
  <pre><code>var userDataSource = new kendo.data.DataSource({
      transport: {
          read: {
              //This should be a customized list of users, or all users fetched from the datastore
              url: "ServiceURI/UserProfile/Get/",
              dataType: "json"
          },
      },
      schema: {
          model: {
              id: "userId",
              fields: {
                  userId: {
                      from: "UserId",
                      type: "number"
                  },
                  displayName: {
                      from: "DisplayName"
                  }
              }
          }
      }
  });
  userDataSource.fetch();
  
  var taskDataSource = new kendo.data.DataSource({
  
      transport: {
          read: {
              //This should be the entire list of tasks fetched from the datastore
              url: "ServiceURI/ScheduledTask/Get?companyId=1",
              dataType: "json"
          }
      },
      schema: {
          model: {
              id: "scheduledTaskId",
              fields: {
                  scheduledTaskId: {
                      from: "ScheduledTaskId",
                      type: "number"
                  },
                  taskName: {
                      from: "TaskName"
                  }
              }
          }
      }
  
  });
  taskDataSource.fetch();
  </code></pre>
  
  <h2>JSON returned</h2>
  
  <p><img src="https://i.stack.imgur.com/aSLtp.png" alt="JSON"></p>