This is a migrated thread and some comments may be shown as answers.

Template Help -

2 Answers 206 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 2
John asked on 09 Jan 2018, 12:50 AM

Hi,

We have just purchased Telerik UI for ASP.NET Core.

Could I get some help trying to implement a template column that contains and Action Link like the following Tag?

 <a asp-page="./Details" asp-route-id="@item.Id">Details</a>

 

[Using Core Razor Pages, .NET Core 2.0, VS2017]

 

2 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 2
answered on 09 Jan 2018, 02:17 AM

Update: - So for now I have implemented a non-tag-helper method:  

columns.Bound(p => p.Id).ClientTemplate("<a href='/Practice/Details?id=#= Id #'>Details</a> | " +
                                                              "<a href='/Practice/Edit?id=#= Id #'>Edit</a> | " +
                                                              "<a href='/Practice/Delete?id=#= Id #'>Delete</a>")

 

Ideally it would be nice to use the tag-helper approach inside the ClientTemplate - eg (not working)

columns.Bound(p => p.Id).ClientTemplate("<a asp-page=./Details asp-route-id=#= Id #>Details</a>");

0
Stefan
Telerik team
answered on 11 Jan 2018, 11:01 AM
Hello, John,

I have provided the information in the other forum post:

https://www.telerik.com/forums/action-links-in-grid

If possible, please avoid posting duplicate threads, as it can lead to overhead in our support department. Thank you for understanding.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
John
Top achievements
Rank 2
Answers by
John
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or