title: Kendo UI Grid pass value to edit popup
body: <p>I'm using Kendo UI MVC and I have a view that contains details about an object.  On that page I have a Kendo UI Grid that shows a list of notes about the object.  I allow the user to create or edit the notes from the grid. </p>
  
  <p>The problem I have is when the user clicks the add button I need to pass the id of the page's object. I'm using GridEditMode.PopUp.  </p>
  
  <p>Basically, this is what I have:</p>
  
  <pre><code>public class Item {
     public int Id { get;set; }
     ...
  }
  public class Note {
      public int ItemId {get;set;}
      ...
  }
  </code></pre>
  
  <p>Here is the grid code:</p>
  
  <pre><code>@(Html.Kendo()
      .Grid&lt;NoteViewModel&gt;()
      .Name("kendo-grid")
      .Columns(columns =&gt;
      {        
          columns.Bound(n =&gt; n.NoteDateTime).Title("Date").Format("{0:MM/dd/yyyy}");
          columns.Bound(n =&gt; n.NoteDateTime).Title("Time").Format("{0:h:mm tt}").Sortable(false);
          columns.Bound(n =&gt; n.NoteActivityType).Title("Activity Type");
          columns.Bound(n =&gt; n.NoteDescription).Title("Description");
          columns.Bound(n =&gt; n.NoteDetail).Title("Notes");
          columns.Command(command =&gt; { command.Edit(); command.Destroy(); }).Width(200);
      })
      .ToolBar(toolbar =&gt; toolbar.Create())
      .Editable(editable =&gt; editable.Mode(GridEditMode.PopUp).TemplateName("Note"))
      .Mobile()
      .Pageable()
      .Sortable()
      .Filterable()
      .Reorderable(r =&gt; r.Columns(true))
      .Resizable(r =&gt; r.Columns(true))
      .DataSource(dataSource =&gt; dataSource.Ajax()
          .Model(model =&gt; model.Id(note =&gt; note.Id))
          .PageSize(25)
          .Sort(sort =&gt;
          {
              sort.Add(note =&gt; note.NoteDateTime);
          })
          .Read(read =&gt; read.Action("ReadNotes", "Case").Data("getCaseId"))
          .Create(a =&gt; a.Action("CreateNote", "Case"))
          .Update(u =&gt; u.Action("UpdateNote", "Case"))
          .Destroy(d =&gt; d.Action("DeleteNote", "Case"))
      )
  )
  </code></pre>
  
  <p>I need to set Note.ItemId when the user clicks the add button on the grid.  Or, is there a better way to do this, as in send the ItemId value on the post?</p>