column template kendo ui grid mvc action link
asp.net-mvc-3, kendo-ui
Solution
Something like this should do:
.ClientTemplate("<a href='" + Url.Action("Index", "Summary", new { testId = "#=TestId#" }) + "'>#=FirstName#</a>")
Problem
The following code is working fine in development, as soon as i deploy in web server it said could find file directory. I need to change the .client template so its not hard coded like before. So if we deploy to the server where the Top folder name different or the hierarchy change, it still find the page. I was thinking using @Url.Action but not sure how in this case to implement in .CLientTemplate ``` columns.Template(@<text> @Html.ActionLink(@item.FirstName, "Index", "Summary", new { testId = @item.FirstName }) </text>) .ClientTemplate("<a href='/Summary/Index/?testId =#= TestId #'>#=FirstName#</a>").Title("First Name"); ```