This question is locked. New answers and comments are not allowed.
Hi guys, here is my column Template code:
The first ActionLink is always visible, the last depending on the if condition. I can't get it to work.
Anyone idea? What am I missing?
Best regards,
Darko
columns.Template(m => @<text> @Html.ActionLink("Details", "Details", new { id = m.Id }) @if (!m.Started) { @Html.ActionLink("Edit", "Edit", new { id = m.Id }) @Html.ActionLink("Delete", "Delete", new { id = m.Id }) } </text>).Title("Action").Width(180);The first ActionLink is always visible, the last depending on the if condition. I can't get it to work.
Anyone idea? What am I missing?
Best regards,
Darko