title: Adding an Edit column to a telerik grid using ASP.Net MVC 2 and Telerik MVC (2010 Q1)
body: <p>I have been successful with creating a Telerik grid to display a list of products, however I've gone through some difficulty adding the column to allow a user to edit (I'm not even trying to edit within the grid - I simply want a link to an edit view)</p>
  
  <p>When I add the custom column, I get the following lines in my error screen when I debug (Line 24 in red):</p>
  
  <pre><code>Line 22:                          columns.Add(o =&gt; o.ProductIsActive);
  Line 23:                          columns.Template(o =&gt;
  Line 24:                          {
  Line 25:                              
  Line 26:                              %&gt;&lt;%=Html.ActionLink("Edit", "Edit", new { id = o.ProductID })%&gt;&lt;% }).Title("Edit");
  </code></pre>
  
  <p>My Compiler Error Message is Compiler Error Message: CS1525: Invalid expression term ')'</p>
  
  <p>Here is my View Code:</p>
  
  <pre><code>&lt;%= Html.Telerik().Grid&lt;NationalPetVax.Models.Product&gt;()
            .Ajax(ajax =&gt; ajax.Action("_Index", "Products"))
            .DataKeys(dataKeys =&gt; dataKeys.Add(c =&gt; c.ProductID))
            .DataBinding(dataBinding =&gt; dataBinding.Ajax().Update("Update", "Home"))
  
            .Name("Grid")
                   .Columns(columns =&gt;
                   {
                       columns.Add(o =&gt; o.ProductName).Width(81);
                       columns.Add(o =&gt; o.ProductPrice).Width(200);
                       columns.Add(o =&gt; o.ProductType.ProductTypeName);
                       columns.Add(o =&gt; o.Specy.SpeciesName);
                       columns.Add(o =&gt; o.ProductIsActive);
                       columns.Template(o =&gt;
                       {
  
                           %&gt;&lt;%=Html.ActionLink("Edit", "Edit", new { id = o.ProductID })%&gt;&lt;% }).Title("Edit");
  
                       })
            .Sortable()
            .Scrollable()
            .Pageable();
      %&gt;
  </code></pre>
  
  <p>Has anyone ever seen this issue?  I have followed the tutorials over and over and am about to give up on the telerik grids all together, although I really like them and want to include in my projet.</p>