Back to Devexpress

ASPxClientGantt.ZoomOut Method

aspnet-js-aspxclientgantt-4680121c.md

latest1.3 KB
Original Source

ASPxClientGantt.ZoomOut Method

Zooms out the Gantt chart.

Declaration

ts
ZoomOut(): void

Remarks

Call the ZoomOut method to zoom out the chart.

js
function zoom_In(s, e) {
    clientGantt.ZoomIn();
}

function zoom_Out(s, e) {
    clientGantt.ZoomOut();
}
aspx
<dx:ASPxButton ID="ZoomIn_Button" runat="server" AutoPostBack="false" Text="ZoomIn">
    <ClientSideEvents Click="zoom_In" />
</dx:ASPxButton>

<dx:ASPxButton ID="ZoomOut_Button" runat="server" AutoPostBack="false" Text="ZoomOut">
    <ClientSideEvents Click="zoom_Out" />
</dx:ASPxButton>

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

You can also zoom out the chart with the toolbar item. See the following topic for more information: GanttZoomOutToolbarItem.

See Also

ZoomIn

GanttZoomOutToolbarItem

ASPxClientGantt Class

ASPxClientGantt Members