This is a migrated thread and some comments may be shown as answers.

Change ToolTip Template of Task

4 Answers 70 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Gregor
Top achievements
Rank 1
Gregor asked on 08 Sep 2015, 11:33 AM

Hi,

how can I change the tooltip template of the tasks in gantt control. I didn't find a property and there seems no way to change the wrapped kendo gantt tooltip in javascript with widget.setOptions. Any idea?

 

Thx

4 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 11 Sep 2015, 08:53 AM
Hello Gregor,

I am afraid that currently the RadGantt does not provide the ability to manage its ToolTip.

Regards,
Nencho
Telerik
0
Gregor
Top achievements
Rank 1
answered on 11 Sep 2015, 01:57 PM

Is it then better at them moment to use the Kendo Gantt instead? The ASP.NET control seems to be just a wrapper around it and ‚Äčin Kendo Gantt that function is available I think.

 

Thx

Gregor

0
Gregor
Top achievements
Rank 1
answered on 11 Sep 2015, 03:46 PM

Found a solution when I was working on doublecklicking a task. It would be possible to turn off the build in tooltip (ShowTooltip=False) an use mouseover/in/out or click Events in javascript to show customized dialogs.

$(document).ready(function() {
 
 
            $(".rgtTask").on("dblclick", function(e) {
                 
                var gantt = $find("<%=_projectGanttChart.ClientID%>")._widget;
 
                e.stopPropagation();
                var element = $(e.target);
                if (!element.is(".rgtTask")) {
                    element = element.closest(".rgtTask");
                }
                 
                if (element.length==1) {
                    task = gantt.dataItem($(".rgtTreelistContent").find("[data-uid="+element.data("uid")+"]"));
                    if (task != null) {
... do something
                    }
                }
 
            });
        });

0
Nencho
Telerik team
answered on 16 Sep 2015, 12:11 PM
Hello Gregor,

Indeed the control could be customized in the demonstrated manner - by disabling the inbuilt tool tip and creating a custom one on the dbclick event of certain task.

Thank you for sharing your solution with the community.

Regards,
Nencho
Telerik
Tags
Gantt
Asked by
Gregor
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Gregor
Top achievements
Rank 1
Share this question
or