Change ToolTip Template of Task

5 posts, 0 answers
  1. Gregor
    Gregor avatar
    5 posts
    Member since:
    Jun 2010

    Posted 08 Sep 2015 Link to this post

    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

  2. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 11 Sep 2015 Link to this post

    Hello Gregor,

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

    Regards,
    Nencho
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Gregor
    Gregor avatar
    5 posts
    Member since:
    Jun 2010

    Posted 11 Sep 2015 in reply to Nencho Link to this post

    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

  5. Gregor
    Gregor avatar
    5 posts
    Member since:
    Jun 2010

    Posted 11 Sep 2015 in reply to Gregor Link to this post

    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
                        }
                    }
     
                });
            });

  6. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 16 Sep 2015 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017