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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Putting a href on the tree column

Thread ID:





150514 Jan 9,2020 12:03 PM UTC Jan 13,2020 11:37 AM UTC JavaScript - EJ 2 1
Tags: Gantt Chart
Martin Pamplin
Asked On January 9, 2020 12:03 PM UTC

I have a Gantt chart with the task name used as the tree column. This is working fine but I need to make this a hyperlink to another web page. I tried using a column template, this gives me the link but loses the tree functionality.

Is there any way that I can keep the tree function but have the text as a hyperlink?

Jesus Arockia Sankaran S [Syncfusion]
Replied On January 13, 2020 11:37 AM UTC

Hi Martin, 

We have analyzed your query regarding display text as hyperlink on tree column. Using disableHtmlEncode boolean property we can render HTML tags in Tree Grid cells. By default it is  true for XSS attack prevention. To display as hyperlink we need to set this property false. Please refer the following code snippet, 

let gantt: Gantt = new Gantt( 
dataSource: editingData, 
       disableHtmlEncode: false, 

We have prepared sample for your reference, 

Please let us know, if you need further details on this. 
Jesus Arockia Sankaran S 


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon