Display column value as Hyperlink
Attachment: Hyperlink_Column_93600abc.zip
Hi Som,
Thanks
for using Syncfusion Products.
We have achieved your
requirement “display the URL as a Hyperlink in grid column” by using
column Template feature in following workaround solution. Please refer
the following code snippet.
|
<script type="text/x-jsrender" id="temp"> <a id="{{:Link}}" rel='nofollow' href="{{:Link}}">{{:Link}}</a> </script> <div id="Grid"></div> <script> $(function () { var Data = [{ "No": 1, "Name": "John", "Link": "http://js.syncfusion.com/demos/web/#!/flat" }, { "No": 2, "Name": "Smith", "Link": "http://mvc.syncfusion.com/demos/web" }, { "No": 3, "Name": "Tomps", "Link": "http://asp.syncfusion.com/demos/web/" }, { "No": 4, "Name": "Hanar", "Link": "http://www.syncfusion.com/" }, { "No": 5, "Name": "Reek", "Link": "http://help.syncfusion.com/web" }] $("#Grid").ejGrid({
dataSource: Data,
columns: [
. . .
{ headerText: "Links", template: "#temp", width: 110 }], }); }); </script> |
For your convenience we have created a sample
and the same can be downloaded from the following link.
Sample Link: http://www.syncfusion.com/downloads/support/directtrac/general/Links-1275118796.zip
Please try the
above sample and let us know if you would require any further assistance.
Sellappandi R
Hi Som,
Thanks for your update.
Please get back to us if you require further assistance. We will
be glad to assist you.
Regards,
Sellappandi R
- 3 Replies
- 2 Participants
-
SN Som Nuantawee
- Dec 15, 2014 03:04 AM UTC
- Dec 16, 2014 04:05 AM UTC