Hi,
I am trying to create hyperlink column using ClientTemplate and Html.ActionLink. Here is my code:
It creates properly hyperlink for id in the browser, but when I click on hyperlink I am getting on the server orderId "#=Id#", so first "#=Id#" was rendered properly with proper order Id, but it was not rendered when it passed to the server side.
Please advise what I am doing wrong.
Thanks.
I am trying to create hyperlink column using ClientTemplate and Html.ActionLink. Here is my code:
@(Html.Kendo().Grid<OrderViewModel>() .Name("Orders") .HtmlAttributes(new {style = "height: 400"}) .Columns(c => { c.Bound(p => p.Id).Title("Order ID") .Groupable(false) .ClientTemplate((@Html.ActionLink("#=Id#", "Index", "Splits", new { orderId = "#=Id#" }, null).ToHtmlString()));})It creates properly hyperlink for id in the browser, but when I click on hyperlink I am getting on the server orderId "#=Id#", so first "#=Id#" was rendered properly with proper order Id, but it was not rendered when it passed to the server side.
Please advise what I am doing wrong.
Thanks.