aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttviewsettings-5210c270.md
Specifies whether to display task resources.
Namespace : DevExpress.Web.ASPxGantt
Assembly : DevExpress.Web.ASPxGantt.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(true)]
public bool ShowResources { get; set; }
<DefaultValue(True)>
Public Property ShowResources As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true, to display task resources; otherwise, false.
|
You can access this nested property as listed below:
| Library | Object Type | Path to ShowResources |
|---|---|---|
| ASP.NET MVC Extensions | GanttSettings |
.SettingsGanttView .ShowResources
| | ASP.NET Web Forms Controls | ASPxGantt |
.SettingsGanttView .ShowResources
|
The GanttViewSettings class contains options that specify the gantt control’s view settings. Use the SettingsGanttView property to access these settings.
Run Demo: ASPxGantt - Chart Appearance Run Demo: MVCxGantt - Chart Appearance
Web Forms:
<dx:ASPxGantt ID="Gantt" runat="server" ...>
//...
<SettingsGanttView ShowResources="false" TaskTitlePosition="Outside" ViewType="Weeks" />
</dx:ASPxGantt>
MVC:
@Html.DevExpress().Gantt(settings => {
settings.Name = "gantt";
settings.SettingsGanttView.ShowResources = false;
settings.SettingsGanttView.TaskTitlePosition = GanttTaskTitlePosition.Outside;
settings.SettingsGanttView.ViewType = GanttViewType.Weeks;
...
}).Bind(
GanttDataProvider.Tasks,
GanttDataProvider.Dependencies,
GanttDataProvider.Resources,
GanttDataProvider.ResourceAssignments
).GetHtml()
See Also