Skip to main content
A newer version of this page is available. .

ASPxClientGantt.SetViewType(viewType) Method

Specifies the view type.

Declaration

SetViewType(
    viewType: ASPxClientGanttViewType
): void

Parameters

Name Type Description
viewType ASPxClientGanttViewType

The control’s view type.

Remarks

<script>
     function click(s, e) {
          clientGantt.SetViewType(ASPxClientGanttViewType.Weeks);
     }
</script>
...
<dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt" >
    //...
</dx:ASPxGantt>

<dx:ASPxButton ID="ASPxButton1" runat="server" Text="Clear" AutoPostBack="false">
     <ClientSideEvents Click="click" />
</dx:ASPxButton>
See Also