title: Redirect when Edit a Kendo UI grid with ASP .NET MVC
body: <p>I want to add a redirection to another page when I click on the "Edit" button with a Kendo UI grid with ASP .NET MVC.</p>
  
  <p>Here is the base code:</p>
  
  <pre><code>@(Html.Kendo().Grid&lt;ViewModel&gt;()
      .Name("grid")
      .Columns(columns =&gt;
      {
          columns.Bound(x =&gt; x.Id);
          columns.Bound(x =&gt; x.Name);
          columns.Bound(x =&gt; x.Field1);
          columns.Command(commands =&gt;
          {
              commands.Edit();
              commands.Destroy();
          })
      })
      .DataSource(dataSource =&gt; dataSource
          .Ajax()
          .Model(model =&gt; model.Id(x =&gt; x.Id))
          .Read(read =&gt; read.Action("Read", "Home"))
          .Update(update =&gt; update.Action("Edit", "Home"))
          .Destroy(destroy =&gt; destroy.Action("Destroy", "Home"))
      )
  )
  </code></pre>
  
  <p>I tried to use the HTML attributes but it doesn't work:</p>
  
  <pre><code>commands.Edit().HtmlAttributes(new { @class = "edit" });
  </code></pre>
  
  <p>Then, I tried to add a custom edit (via commands.Custom(...) but unfortunately it is just for .Server() data binding.</p>
  
  <p>I can do it with a client template but I really would like to use the default button proposed by Kendo UI:</p>
  
  <pre><code>columns.Template(@&lt;text&gt;&lt;/text&gt;)
              .ClientTemplate(
                  "&lt;a href='" + Url.Action("Edit", "Home") + "/#=Id#'&gt;Edit&lt;/a&gt;");
  </code></pre>
  
  <p>Do you have any other idea?</p>
  
  <p>Thanks in advance.</p>