This question is locked. New answers and comments are not allowed.
I am having problems formating a cell as a link. I am trying to display a task. I need to show the task text, but like to the task item.
Doing it as an action works, byt then I can't use ajax binding
// doesn't work, won't show task text
columns.Add(t => t.Task).Format(Html.ActionLink("{0}", "ClaimNumber", new { Id = "{0}" })).Encoded(false);
// works but can't use ajax
columns.Add(t =>
{ %>
<%= Html.ActionLink(t.Task, "ToDoItem", new { Id = t.Id })%>
<% }).Title("Task");
Any ideas?
Sean
Doing it as an action works, byt then I can't use ajax binding
// doesn't work, won't show task text
columns.Add(t => t.Task).Format(Html.ActionLink("{0}", "ClaimNumber", new { Id = "{0}" })).Encoded(false);
// works but can't use ajax
columns.Add(t =>
{ %>
<%= Html.ActionLink(t.Task, "ToDoItem", new { Id = t.Id })%>
<% }).Title("Task");
Any ideas?
Sean