How to add an HTML Anchor(a tag) in Telerik MVC controls
Following Code shows how to add an HTML anchor tag link in Telerik controls for MVC. you can pas query string as well using this link.
Html.Telerik().Grid(Model)
.Name("Items")
.DataKeys(keys => { keys.Add(x => x.Id); })
.Columns(columns =>
{
columns.Bound(x => x.Id).Title("").Format(Html.ActionLink("edit", "Edit", new { id = "{0}" }).ToHtmlString()).Encoded(false).Width(60);
})
.Render();
Comments
Post a Comment