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

How can i place links in kendo data grid field

1 Answer 7 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sudarshan
Top achievements
Rank 1
sudarshan asked on 13 Sep 2016, 01:32 AM

Need your help please...!!!

I need to place links in one of the field of a data grid. I have attached sample format (link.jpg).

Output should be in this format: link.jpg

I am getting the output: Myoutput.png

Here is my code: I have tried with the below code but it is not displaying as a link.

columns: [{
template: "<a ui-sref='transaction_view/{{timePeriod}}'>TD</a>",text: " ",title: " ",width: "50px"},{
field: "Market",
title: "Market",
width: "60px"
},{
field: "Success",
title: "Success",
width: "50px"
},{
field: "Error",
title: "Error",
width: "50px"
},{
field: "InQueue",
title: "InQueue",
width: "50px"

1 Answer, 1 is accepted

Sort by
0
Orlin
Telerik team
answered on 14 Sep 2016, 07:21 AM
Hello Sudarshan,

Templates in Kendo UI do not use curly braces but the # symbol for template character. You can read more about templates in Kendo UI here: http://docs.telerik.com/kendo-ui/framework/templates/overview

As for inserting links into grid fields, you can follow this dojo example:
http://dojo.telerik.com/eTABe

I hope this helps.


Regards,
Orlin
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Grid
Asked by
sudarshan
Top achievements
Rank 1
Answers by
Orlin
Telerik team
Share this question
or