title: How to pass value from kendo grid to kendo window in MVC
body: <p>How can I pass the PreEmploymentId of the selected row from the grid to window on button click event of the grid. This may be simple, but I am new and still learning basics.</p>
  
  <p>Script-</p>
  
  <pre><code>&lt;script&gt;
      $("[data-button-type='auction']")
                  .click(function(e) {
                      myWindow.data("kendoWindow").open();
                      myWindow.data("kendoWindow").center();
                      myWindow.data("kendoWindow").top();
                  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Kendo Grid-</p>
  
  <pre><code>&lt;div &gt;
  @*Telerik grid*@
  @{
      Html.Kendo().Grid(Model.LstPreEmploymentWorkflowModellist)
          .Name("MyGrid")
          .Columns(col =&gt;
          {
              //on edir button click action name Main in invoked in PreEmploymentWorkflow controller and PreEmploymentId is passed
              col.Template(@&lt;text&gt;
                               @Html.ActionLink("Edit", "Main", "PreEmploymentWorkflow", new {Id = item.PreEmploymentId}, new {@class = "classname"})&lt;/text&gt;).Width(30);
              col.Bound(o =&gt; o.PreEmploymentId).Visible(false).Groupable(false);
              col.Bound(o =&gt; o.FirstName).Width(30).Groupable(false);
              col.Template(@&lt;text&gt;
                               @Html.ActionLink("OpenFile", "Openfile", "PreEmploymentWorkflow", new {Id = item.PreEmploymentId, uploadfilename = "EEOC Tracking Form"}, new {@class = "classname3"})&lt;/text&gt;).Title("EEOC").Width(30);
              col.Template(@&lt;text&gt;@(Html.Kendo().Button()
                                        .Name("open" + @item.PreEmploymentId)
                                        .ImageUrl(Url.Content("/images/auction_16.gif")).HtmlAttributes(new {type = "submit", data_button_type = "auction" })
                                        )
                            &lt;/text&gt;).Width(40).Title("Status");
              col.Template(@&lt;text&gt;
                               @Html.ActionLink("Delete", "Delete", "PreEmploymentWorkflow", new {Id = item.PreEmploymentId}, new {@class = "classname2"})&lt;/text&gt;).Width(30);
          })
          //.HtmlAttributes(new { style = "width: 1100px" })
          .Sortable()
          .Render();
  }
  </code></pre>
  
  <p></p>
  
  <p>Kendo Window-</p>
  
  <pre><code> @{Html.Kendo().Window()
        .Name("window")
        .Width(500)
        .Height(315)
        .Animation(true)
        .Draggable()
        .Visible(false)
        .Modal(true)
        .Title("Employment Status")
        .Actions(actions =&gt; actions.Close())
        .Content(@&lt;text&gt;
                     @using (Html.BeginForm("CreateStatus", "PreEmploymentWorkflow", FormMethod.Post, new { enctype = "multipart/form-data" }))
                     {
                         &lt;table&gt;
                             &lt;tr&gt;
                             &lt;td&gt;
                                     @(Html.Kendo().TextBoxFor(m =&gt; m.LstPreEmploymentWorkflowModel.PreEmploymentId))
                                 &lt;/td&gt;
                                 &lt;td&gt;
                                     @(Html.Kendo().RadioButtonFor(m =&gt; m.LstPreEmploymentWorkflowModel.Status).Value(1).Label("Approved"))
                                 &lt;/td&gt;
                                 &lt;td&gt;
                                     @(Html.Kendo().RadioButtonFor(m =&gt; m.LstPreEmploymentWorkflowModel.Status).Value(9).Label("Reject"))
                                 &lt;/td&gt;
                             &lt;/tr&gt;
                             &lt;tr&gt;
                                 &lt;td&gt;
                                     &lt;label class="Bold" for="statusattachment"&gt;Status Attachment:&lt;/label&gt;
                                 &lt;/td&gt;
                                 &lt;td&gt;&lt;input type="file" name="uploadfilestatus"/&gt;&lt;/td&gt;
                             &lt;/tr&gt;
                             &lt;tr&gt;
                                 &lt;td&gt;
                                     &lt;input id="Button1" type="submit" value="Submit"/&gt;
                                 &lt;/td&gt;
                             &lt;/tr&gt;
                         &lt;/table&gt;
                     }
                  &lt;/text&gt;)
        .Render();
  }
  </code></pre>
  
  <p>Thanks in advance.</p>