Hi,
I am using Asp.Net MVC 3 and Infragistic Grid. I am using column template as below:
col.For(x => x.SummaryID).HeaderText("ID").Template("<a id='lnkSummaryID' href='${SummaryID}'>${SummaryID}</a>");
Is there any way to use @Ajax.ActionLink instead of Anchor tag in column template ??
Thank you Martin Pavlov
@Html.Raw(
@Ajax.ActionLink(....)
.ToString().Replace("%24", "$").Replace("%7B", "{").Replace("%7D", "}"))
)
Hi John,
Try to use this code:
Ajax.ActionLink("${ProductID}", "OpenProduct", "Home", new { productID = "${ProductID}" }, new AjaxOptions() { UpdateTargetId = "customerContainer" }).ToString().Replace("%24", "$").Replace("%7B", "{").Replace("%7D", "}")
It's not a good solution but it's a working one.
Hope this helps,
Martin Pavlov
Infragistics, Inc.
So what do you suggest we do if we want to use the Ajax.ActionLink?
I couldn't make it work. Here is my code:
In this code the problem is in "new { summaryID = "${SummaryID}" }" code in which I tried to pass SummaryID as GET query argument. However the dolar sign($) and the curly brackets ({}) are encoded and Infragistics templating engine cannot substitute the ${SummaryID} placeholder. You can see what I'm talking about in the attached screenshot.
Best regards,