Skip to main content
All docs
V24.2

ASPxClientGantt.ShowDependencies(value) Method

Shows or hides task dependencies.

Declaration

ShowDependencies(
    value: boolean
): void

Parameters

Name Type Description
value boolean

true to show dependencies; otherwise, false.

Remarks

Call the ShowDependencies method to show or hide dependencies.

When dependencies are hidden, the Gantt imposes the following limitations:

  • The dependency rules have no effect.

  • Users cannot manage dependencies in the UI.

ASPxGantt - ShowDependencies Method

function onClick_Hide(s, e) {
    clientGantt.ShowDependencies(false);
}

function onClick_Show(s, e) {
    clientGantt.ShowDependencies(true);
}
<dx:ASPxButton runat="server" ID="Button1" AutoPostBack="false" Text="Hide">
    <ClientSideEvents Click="onClick_Hide" />
</dx:ASPxButton>
<dx:ASPxButton runat="server" ID="Button2" AutoPostBack="false" Text="Show">
    <ClientSideEvents Click="onClick_Show" />
</dx:ASPxButton>

<dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt"... >
    <!--...-->
</dx:ASPxGantt>
See Also