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

Popular Posts

Apple iPhone sending SMS automatically 00447786205094

GREYCstoration Oil Paint plugin for Photoshop

Security Token Service is not available (I fixed it)

SharePoint online hub navigation not updating for other users

Service Bus Gateway service stuck at Starting