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.
Unfortunately, activation email could not send to your email. Please try again.

Tooltip

Thread ID:

Created:

Updated:

Platform:

Replies:

121004 Nov 2,2015 09:00 AM Nov 3,2015 07:40 AM ASP.NET MVC 1
loading
Tags: Gantt
Andrea Perazzolo
Asked On November 2, 2015 09:00 AM

Hi,
In my Gantt chart,I have set the property ShowProgressStatus to false
Is it correct that the tooltip of the chart  shows the Progress value alongside the other?
There is a way to remove from the tooltip?

     Thanks in advance

    Andrea Perazzolo

Mahalakshmi Karthikeyan [Syncfusion]
Replied On November 3, 2015 07:40 AM

Hi Andrea,

The property ‘ShowProgressStatus’ is used only to specify whether to display progress over the taskbar or not, If we want to customize the task bar tooltip then we can use “TaskbarTooltipTemplateId” property. We can customize the tooltip using this property. Please refer the following code example for details.

<script type="text/x-jsrender" id="customTooltip">

        <table cellspacing="4">

            <tr>

                <td colspan="2"><b>{{:taskName}}</b></td>

            </tr>

            <tr> <td>StartDate:</td><td>{{:~_GanttDateFormatter("startDate")}}</td></tr>

            <tr><td>EndDate:</td><td>{{:~_GanttDateFormatter("endDate")}}</td></tr>

            <tr><td>Duration:</td><td>{{:duration}}</td></tr>

        </table>

    </script>

    <script type="text/javascript">

          function _dateFormating(data) {

                return Globalize.format(this.data[data], "dddd , dd MMMM yyyy");

          }

          var helpers = {};

          helpers["_GanttDateFormatter"] = _dateFormating;

          $.views.helpers(helpers);

    </script>

    @(Html.EJ().Gantt("Gantt")

         //…

         .TaskbarTooltipTemplateId("customTooltip")

    )

Here we have displayed only StartDate, EndDate, and Duration alone in the tooltip.

We have also prepared a sample based on this and you can find the sample under the following location.

Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/TaskbarTooltip228905200

Regards,

Mahalakshmi K.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;