Back to Devexpress

ASPxClientGantt.SetViewType(viewType) Method

aspnet-js-aspxclientgantt-dot-setviewtype-x28-viewtype-x29.md

latest1.3 KB
Original Source

ASPxClientGantt.SetViewType(viewType) Method

Specifies the view type.

Declaration

ts
SetViewType(
    viewType: ASPxClientGanttViewType
): void

Parameters

NameTypeDescription
viewTypeASPxClientGanttViewType

The control’s view type.

|

Remarks

aspx
<script>
clientGantt.SetViewType(ASPxClientGanttViewType.Weeks);
</script>
...
<dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt" >
    //...
</dx:ASPxGantt>

Run Demo: ASPxGantt - Chart Appearance Run Demo: MVCxGantt - Chart Appearance

See Also

GanttViewSettings.ViewType

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members