Back to Devexpress

ASPxClientGantt.TooltipShowing Event

aspnet-js-aspxclientgantt.md

latest2.4 KB
Original Source

ASPxClientGantt.TooltipShowing Event

Occurs before a tooltip is displayed.

Declaration

ts
TooltipShowing: ASPxClientEvent<ASPxClientGanttTooltipShowingEventHandler<ASPxClientGantt>>

Event Data

The TooltipShowing event's data class is ASPxClientGanttTooltipShowingEventArgs. The following properties provide information specific to this event:

PropertyDescription
cancelSpecifies whether to cancel the related action (for example, row edit, export). Inherited from ASPxClientCancelEventArgs.
containerReturns a container for an instance of the tooltip.
taskReturns the processed task.

Remarks

Use the TooltipShowing event to specify tooltip content before it is displayed.

Run Demo: ASPxGantt - Chart Appearance Run Demo: MVCxGantt - Chart Appearance

Web Forms:

aspx
<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents TooltipShowing="function(s, e) {
        //...
        e.container.innerHTML = 'text ' + e.task.title;
    }" />
</dx:ASPxGantt>

MVC:

cshtml
@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.ClientSideEvents.TooltipShowing = "function (s, e) { 
        //...
        e.container.innerHTML = 'text ' + e.task.title;
    }";
    ...
}).Bind(
    GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()

See Also

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members