This is a migrated thread and some comments may be shown as answers.

[Solved] Having error when Using a Template to create a column i a Grid

1 Answer 69 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Maria
Top achievements
Rank 1
Maria asked on 07 Feb 2011, 03:58 PM
Hi All!!
I want to have a column in a Grid to call one action link . I create it using the Template following the code in the tutorial
the code is.
columnas.Template(o => 
                   {
                       %>
                          <%=Html.ActionLink("Texto","Prueba","Peticion",new{ id= o.PeticionID }) %>
                       <%
                           }).Title("Prueba");
 
When I run the application I get the error:

 "CS1525: Invalid expression term ')'"

showing the "{" caracter after (o => .

Any idea about what I'm missing ???.

Thanks

Maria


1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 07 Feb 2011, 04:04 PM
Hi Maria,

 I suggest you check the troubleshooting help article.

Greetings,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Maria
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or