Back to Devexpress

GanttViewSettings.TaskTitlePosition Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttviewsettings-b5a37861.md

latest3.3 KB
Original Source

GanttViewSettings.TaskTitlePosition Property

Specifies a task’s title position.

Namespace : DevExpress.Web.ASPxGantt

Assembly : DevExpress.Web.ASPxGantt.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(GanttTaskTitlePosition.Inside)]
public GanttTaskTitlePosition TaskTitlePosition { get; set; }
vb
<DefaultValue(GanttTaskTitlePosition.Inside)>
Public Property TaskTitlePosition As GanttTaskTitlePosition

Property Value

TypeDefaultDescription
GanttTaskTitlePositionInside

One of the enumeration values.

|

Available values:

NameDescription
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:

LibraryObject TypePath to TaskTitlePosition
ASP.NET MVC ExtensionsGanttSettings

.SettingsGanttView .TaskTitlePosition

| | ASP.NET Web Forms Controls | ASPxGantt |

.SettingsGanttView .TaskTitlePosition

|

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.

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

Web Forms:

aspx
<dx:ASPxGantt ID="Gantt" runat="server" ...>
    //...
    <SettingsGanttView ShowResources="false" TaskTitlePosition="Outside" ViewType="Weeks" />
</dx:ASPxGantt>

MVC:

cshtml
@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

ASPxGantt - 'How To' Examples

GanttViewSettings Class

GanttViewSettings Members

DevExpress.Web.ASPxGantt Namespace