title: Kendo MVC Grid: Creating a Custom command button and passing parameters
body: <p>I'm trying to create a custom command button to fire a custom delete function. I need to pass the ID of my model to my custom delete function. You'll notice that I'm trying to pass in a static '5' as a test but I would like to pass in the ID of the row.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <pre><code>@(Html.Kendo().Grid(Model)
  .Name("Grid")
  .Columns(columns =&gt;
  {
      columns.Bound(p =&gt; p.Name).Width(240);
      columns.Bound(p =&gt; p.City).Width(170);
      columns.Bound(p =&gt; p.State).Width(170);
      columns.Command(command =&gt;
      {
          command.Edit();
          command.Custom("Delete").Click("PropertyPage.DeleteProperty").HtmlAttributes(new { @Id = 5 });
          }).Width(166);
      })
      .Scrollable()
      .Editable(editable =&gt; editable.Mode(GridEditMode.InLine))
      .DataSource(dataSource =&gt; dataSource
          .Ajax()
          .Model(model =&gt; model.Id(p =&gt; p.Id))
          .Read(read =&gt; read.Action("PropertyRead", "Property"))
          .Update(update =&gt; update.Action("Update", "Property"))
          .Destroy(update =&gt; update.Action("Delete", "Property"))
  ))
  </code></pre>