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
close icon

Putting a href on the tree column

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?

1 Reply

JA Jesus Arockia Sankaran S Syncfusion Team 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 

Live Chat Icon For mobile
Up arrow icon