Skip to main content

GanttStripLineSettings.ShowCurrentTime Property

Specifies whether to highlight the current time in the Gantt control.

Namespace: DevExpress.Web.ASPxGantt

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

NuGet Package: DevExpress.Web

#Declaration

[DefaultValue(false)]
public bool ShowCurrentTime { get; set; }

#Property Value

Type Default Description
Boolean false

true, to highlight the current time; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Library Object Type Path to ShowCurrentTime
ASP.NET MVC Extensions GanttSettings
.SettingsStripLine .ShowCurrentTime
ASP.NET Web Forms Controls ASPxGantt
.SettingsStripLine .ShowCurrentTime

#Remarks

Set the ShowCurrentTime property to true to highlight the current time and use the CurrentTimeUpdateInterval property to specify the time interval between the current time updates.

Gantt - ShowCurrentTime Property

Run Demo: ASPxGantt - Strip Lines Run Demo: MVCxGantt - Strip Lines

Web Forms:

<dx:ASPxGantt ID="Gantt" runat="server"...>
    ...
    <SettingsStripLine ShowCurrentTime="true" CurrentTimeUpdateInterval="5" />
</dx:ASPxGantt>
Gantt.SettingsStripLine.ShowCurrentTime = true; 
Gantt.SettingsStripLine.CurrentTimeUpdateInterval = 5;

MVC:

settings.SettingsStripLine.ShowCurrentTime = true; 
settings.SettingsStripLine.CurrentTimeUpdateInterval = 5;

#Examples

See Also