The requested page is not available for the requested platform. You are viewing the content for Default platform.
All docs
V19.2
19.2
19.1
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.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