Hyperlink column in Kendo Grid MVC

0 Answers 565 Views
Grid
Jim
Top achievements
Rank 1
Jim asked on 25 Jun 2021, 03:09 PM
I am trying to create a hyperlink column in Kendo grid that will display a Purchase Order number and link to a SSRS Report. The link should open the report in a separate tab  with the PO Number as a parameter
Jim
Top achievements
Rank 1
commented on 25 Jun 2021, 10:30 PM

I was able to accomplish it with this code.

columns.Bound(o => o.PONumber).ClientTemplate("<a target='_blank' href='http://ssrs/reports/Purchase%20Order?PoNumber=#=PONumber#'> #=PONumber#</a>").Width(100);
Ivan Danchev
Telerik team
commented on 30 Jun 2021, 01:01 PM

Yes, using a template in the column is the right way to go, since it allows you to display Html (in this case an anchor) in the column and in the template you have access to the record fields (e.g., PONumber).

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Jim
Top achievements
Rank 1
Share this question
or