GanttViewSettings.TaskTitlePosition Property
Specifies a task’s title position.
Namespace: DevExpress.Web.ASPxGantt
Assembly: DevExpress.Web.ASPxGantt.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
[DefaultValue(GanttTaskTitlePosition.Inside)]
public GanttTaskTitlePosition TaskTitlePosition { get; set; }
Property Value
Type | Default | Description |
---|---|---|
GanttTaskTitlePosition | Inside | One of the enumeration values. |
Available values:
Name | Description |
---|---|
Inside | Displays a title inside a task. |
Outside | Displays a title outside a task. |
None | Does not display a title. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to TaskTitlePosition |
---|---|---|
ASP.NET Web Forms Controls | ASPxGantt |
|
ASP.NET MVC Extensions | GanttSettings |
|
Remarks
Use the TaskTitlePosition property to specify a task’s title position.
The GanttViewSettings class contains options that specify the gantt control’s view settings. Use the SettingsGanttView property to access these settings.
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