All docs
V21.2
21.2
21.1
The page you are viewing does not exist in version 21.1. This link will take you to the root page.
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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