title: Using a Kendo Grid to create a new record inline how do I update the Key ID for the new record?
body: <p>In my Kendo Grid I have the default "Add a new Record" button and I have it set to be editable inline. I managed to get the record inserted into the database but When the user does an update the on this new record it is missing the ID. </p>
  
  <p>My code looks like:</p>
  
  <pre><code>var dataSource = new kendo.data.DataSource(
  {
      transport: {
          read: {
              url: '/Reports/Manage/Reports'
          },
          create: {
              url: function (options) {
                  debugger;
                  // Ajax call to create a new record in the database
                  $.ajax(
                      {
                          type: 'POST',
                          url: '/Reports/Manage/CreateNewReport',
                          data: { name: options.name },
                          success: function (response) {
  </code></pre>
  
  <p>Do I have to do something here???</p>
  
  <pre><code>                            return;
                          },
                          error: function (repsonse) {
                              alert("Manage: CreateNewReport -&gt; Ajax Error!");
                          }
                      });
                  return;
              },
              dataType: "json"
          },
          update: {
              url: function (options) {
                  // Ajax call to update the Report Name in the database.
                  $.ajax(
                      {
                          type: 'POST',
                          url: '/Reports/Manage/UpdateReportName',
                          data: { reportId: options.reportId, name: options.name },
                          success: function (response) {
                              // do nothing
                              // alert("Successfully Saved Note.");
                          },
                          error: function (repsonse) {
                              alert("Manage: UpdateReportName -&gt; Ajax Error!");
                          }
                      });
                  return;
              },
              dataType: "json"
          }
      },
      pageSize: 15,
      height: 500,
      data: reports,
      schema:
      {
          model:
          {
              id: 'reportId',
              fields:
              {
                  name: { editable: true, validation: { required: true } },
              }
          }
      }
  });
  
  
  $reports.kendoGrid(
  {
      dataSource: dataSource,
      pageable: {
          refresh: true,
          pageSizes: true
      },
      toolbar: ["create"],
      columns:
      [
          { field: 'name', title: 'Report', sortable: true },
          { command: ["edit", "destroy"], title: "&amp;nbsp;", width: "180px", }
      ],
      editable: "inline",
      selectable: true,
      change: function (e) {
          // A new report was selected.
          ...
      }
  });
  </code></pre>