简体   繁体   中英

Telerik MVC ASPX ClientTemplate

I need to convert this to ASPX formate.

ClientTemplate(@"<a href=""/EditOffLine/Edit?id=<#= ItemId #>"">Edit</a>")

My column Template is:

  columns.Template(item => Html.ActionLink("Edit", "EditOffLine", new { id = item.ID })).Title("Edit").Width(10);

When I sort or filter the grid, Edit will be lost? I think the client Template would help. Thanks in advance.

我找到了答案,以防万一有人遇到相同的问题:ClientTemplate(Html.ActionLink(“ Edit”,“ EditOffLine”,new {id =“ <#= ID#>”})。ToString() )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM