We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hyperlink based on another cell

Thread ID:





120871 Oct 23,2015 12:54 PM UTC Oct 27,2015 04:09 AM UTC ASP.NET MVC 3
Tags: Grid
Asked On October 23, 2015 12:54 PM UTC

Hi there,

I am trying to add a column/cell at the end of the grid columns to provide a hyperlink based on let's say ID of the record (e.g "<a rel='nofollow' href='/Project?ProjectID=1'>Details</a>")

I have seen few posts regarding links within Grid, but unable to put something together, any assistance on this would be highly appreciated.

I am using MVC 5 / syncfusion version


Alan Sangeeth S [Syncfusion]
Replied On October 26, 2015 05:28 AM UTC

Hi Prasanthan,

Thanks for using Syncfusion products.

We can place Hyperlink in a Grid column using the Column template feature of the grid. The template to a particular column can be provided by using Template and TemplateID properties of the column. Please refer the following code snippets.


.Columns(col =>


col.Field("OrderID").HeaderText("Order ID").Width(90).Add();


col.HeaderText("Employee HyperLink").Template(true).TemplateID("#columnTemplate")       .TextAlign(TextAlign.Center).Width(110).Add();




<script type="text/x-jsrender" id="columnTemplate">

  @*In the template column we can get the values of corresponding row.*@

    <a rel='nofollow' href='/Project/?Id={{:OrderID}}'> Details</a>


For your convenience we have created a sample that can be downloadable from the following link.

Sample: http://www.syncfusion.com/downloads/support/forum/120871/ze/EJGrid295300443

Alan Sangeeth S

Replied On October 26, 2015 06:48 AM UTC

Hi Alan

Thanks for that :-) will try it and if there are any issues will post a message


Saravanan Arunachalam [Syncfusion]
Replied On October 27, 2015 04:09 AM UTC

Hi Prasanthan,

Thanks for your update.          

We will wait to hear from you.


Saravanan A.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon