Hyperlink in child/detail grid column

1 Answer 6 Views
Grid
Chandan
Top achievements
Rank 1
Chandan asked on 29 Jul 2025, 07:05 AM
Hi Team,

I am trying to make child/detail grid column as hyperlink but i am getting not defined error in  console.
Can you please guide on this?
Below is my code & PFA the error screenshot.

Thanks
Chandan Gupta

 columns.Bound(c => c.Inbound).ClientTemplate(
    "<a href='" +
    Url.Action("ReadFeedFile", "TreasuryFeeds") +
    "?fpath=\"#= Inbound #\"&archFileName=#=Archive#'" +
    ">#=Inbound#</a>"
).Title("File Name").Width(120).HtmlAttributes(new { style = "text-align:center;font-size: 10px;font-family: 'Segoe UI', Helvetica, 'Droid Sans', Tahoma, Geneva, sans-serif;" });

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 30 Jul 2025, 09:42 AM

Hi Chandan,

 

Thank you for reaching out.

I will provide the answer here, too:

This usually happens because of the # symbol which needs to be escaped in child grid scenario:
https://www.telerik.com/forums/how-to-escape-hash-character-in-column-template

More information you can find here:
https://docs.telerik.com/kendo-ui/framework/templates/essentials#using-hash-literals

Once you escape the # evaluation sign with \\ symbols, the Inbound value should appear as expected.

 

Regards,
Eyup
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Chandan
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or