Using template on columns in Kendo Gantt Charts

1 Answer 98 Views
Gantt Templates
Ben
Top achievements
Rank 1
Ben asked on 08 Feb 2023, 10:44 AM

Hi

On Kendo Grids we use the following template on a column to convert the string to a href link:

(e.g. workItemLink = <a href="/link/to/a/page.aspx?Key=ABC">ABC</a>

columns: [
	{
		field: "workItemLink",	
		template: "#=workItemLink#",
		title: "Work Item Ref",
		width: "110px"
	}
]

This doesn't seem to work on kendoGantt columns:

columns: [
	{ 
		field: "workItemLink",
		template: "#=workItemLink#",
		title: "Link"
}]

Are templates not supported in gantt charts? Is there another way to add a link the column part of the gantt?

Thanks
Ben

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 13 Feb 2023, 07:09 AM

Hello Ben,

The templates are also available in the Gantt widget. 

- https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt/configuration/columns.template

Below you will find a link to our demos where the functionality is demonstrated. 

- https://demos.telerik.com/kendo-ui/gantt/task-template

Please take a look at the provided example and in case you have any difficulties in configuring the template in the Gantt, send us the configuration of the widgets, so we could take a look and advise you further.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Ben
Top achievements
Rank 1
commented on 13 Feb 2023, 12:29 PM

Hi Neli,

Thanks for reaching out to me. Apologies as I've discovered that the actual issue we have is the version of kendoUI we are using doesn't appear to support columns.template in Gantt charts. We've tested a newer version of Kendo in a dev environment and it is now functioning. We will look to test this further and promote to our live environment at some point in the future.

Maybe it's worth adding version numbers to the documentation?

Thanks
Be

Neli
Telerik team
commented on 16 Feb 2023, 11:37 AM

Hi Ben,

Thank you for the feedback.

Indeed, having the version number in the documentation will be helpful, thus I will forward your feedback to the team.

Usually the important chnages, fixes and features are listed in the Kendo release history:

- https://www.telerik.com/support/whats-new/kendo-ui/release-history

Regards, 

Neli

Tags
Gantt Templates
Asked by
Ben
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or