I would like to set a hyperlink for KENDO GANTT Task, so when the user click on a KENDO GANTT Task bar the browser opens for example www.google.com or www.telerik.com.
I don't find any property, which I can use to do this.
My data ist in a JSON string.
Greetings and Thanks
9 Answers, 1 is accepted
You can check out the templates demo for the gantt widget:
You can modify the demo to create a template which has a hyperlink in it.
unfortunately I can't get the following tooltip-template working on my machine.
On my machine, every gantt-task item shows only the title of the gantt-task (for example the output for a gantt-task is <div class="k-task-template">Control</div>) , although the title is not configured in the task-template.
I suspect that anything is wrong in my task-template, but what?
I tested the provided dojo and it worked as expected on my end. I'm not quite sure what is the expected behavior you are looking for, but if you want to also modify the task tooltip, you have to use the following setting:
I could partially fixed the problem. It was an old kendo.all.min.js version.
But yet when I set the task-template this way,
the created shortcut is not correct, while the property value of task.url2GANTT is not evaluated :
Inside the context of the template you have access to the task properties directly, and you don't have to write task.url2GANTT. If the url2GANTT property is present in each task, the following template should be ok:
produced the following html:
<div class="k-task-template"><div> <a href="#= url2GANTT #">eeee</a></div></div>
Could you help me with the template syntax?
Also I would like to use this template with the hyperlink in a gantt grid title column.
Many many thanks!
many thanks for this snipped. It works for me!