alexa
menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class GanttTimelineSettingsBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    GanttTimelineSettingsBuilder
    Namespace: Syncfusion.EJ2.Gantt
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class GanttTimelineSettingsBuilder : ControlBuilder

    Constructors

    GanttTimelineSettingsBuilder()

    Declaration
    public GanttTimelineSettingsBuilder()

    GanttTimelineSettingsBuilder(GanttTimelineSettings)

    Declaration
    public GanttTimelineSettingsBuilder(GanttTimelineSettings model)
    Parameters
    Type Name Description
    GanttTimelineSettings model

    Methods

    BottomTier(GanttTimelineTierSettings)

    Defines bottom tier settings in timeline. When timelineViewMode is set to a specific mode (not 'None'), explicit bottomTier settings override the mode's default.

    Declaration
    public GanttTimelineSettingsBuilder BottomTier(GanttTimelineTierSettings value)
    Parameters
    Type Name Description
    GanttTimelineTierSettings value
    Returns
    Type
    GanttTimelineSettingsBuilder

    BottomTier(Action<GanttTimelineTierSettingsBuilder>)

    Declaration
    public GanttTimelineSettingsBuilder BottomTier(Action<GanttTimelineTierSettingsBuilder> bottomTier)
    Parameters
    Type Name Description
    System.Action<GanttTimelineTierSettingsBuilder> bottomTier
    Returns
    Type
    GanttTimelineSettingsBuilder

    ShowTooltip(Boolean)

    Enables or disables tooltip for timeline cells.

    Declaration
    public GanttTimelineSettingsBuilder ShowTooltip(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    GanttTimelineSettingsBuilder

    ShowWeekend(Boolean)

    Enables or disables the display of weekend cells in the Gantt Chart timeline. Weekend days are determined based on the workweek configuration, which defines the working days (e.g., Monday to Friday). Any day not included in the workweek is treated as a non-working day. When set to false, non-working days will be hidden from the timeline view.

    Declaration
    public GanttTimelineSettingsBuilder ShowWeekend(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    GanttTimelineSettingsBuilder

    TimelineUnitSize(Double)

    Defines width of timeline cell.

    Declaration
    public GanttTimelineSettingsBuilder TimelineUnitSize(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    GanttTimelineSettingsBuilder

    TimelineViewMode(TimelineViewMode)

    Defines timeline mode of Gantt header. None - Default. Week - Define the week mode header. Day - Define the day mode header. Hour - Define the hour mode header. Month - Define the month mode header. Year - Define the year mode header. Minutes - Define the minutes mode header.

    Declaration
    public GanttTimelineSettingsBuilder TimelineViewMode(TimelineViewMode value)
    Parameters
    Type Name Description
    TimelineViewMode value
    Returns
    Type
    GanttTimelineSettingsBuilder

    TopTier(GanttTimelineTierSettings)

    Defines top tier setting in timeline. When timelineViewMode is set to a specific mode (not 'None'), explicit topTier settings override the mode's default.

    Declaration
    public GanttTimelineSettingsBuilder TopTier(GanttTimelineTierSettings value)
    Parameters
    Type Name Description
    GanttTimelineTierSettings value
    Returns
    Type
    GanttTimelineSettingsBuilder

    TopTier(Action<GanttTimelineTierSettingsBuilder>)

    Declaration
    public GanttTimelineSettingsBuilder TopTier(Action<GanttTimelineTierSettingsBuilder> topTier)
    Parameters
    Type Name Description
    System.Action<GanttTimelineTierSettingsBuilder> topTier
    Returns
    Type
    GanttTimelineSettingsBuilder

    UpdateTimescaleView(Boolean)

    Enables or disables timeline auto update on editing action.

    Declaration
    public GanttTimelineSettingsBuilder UpdateTimescaleView(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    GanttTimelineSettingsBuilder

    ViewEndDate(String)

    Specifies the end date for the visible timeline rendering in the Gantt chart UI. If no value is provided (auto), the end date is automatically calculated to fill the chart width based on the visible timeline. If a specific date is provided, the timeline ends at this date and remains fixed.

    Declaration
    public GanttTimelineSettingsBuilder ViewEndDate(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    GanttTimelineSettingsBuilder

    ViewStartDate(String)

    Specifies the start date for the visible timeline rendering in the Gantt chart UI. If a specific date is provided, the timeline starts at this date and remains fixed.

    Declaration
    public GanttTimelineSettingsBuilder ViewStartDate(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    GanttTimelineSettingsBuilder

    WeekendBackground(String)

    Defines the background color for weekend cells when the timeline shows day-level units (i.e., timelineViewMode is 'Day' or 'Week' and bottomTier.unit is 'Day').

    Declaration
    public GanttTimelineSettingsBuilder WeekendBackground(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    GanttTimelineSettingsBuilder

    WeekStartDay(Double)

    Sets the first day of the week for timeline week calculations and labels. Accepts values: 0 = Sunday, 1 = Monday, ..., 6 = Saturday.

    Declaration
    public GanttTimelineSettingsBuilder WeekStartDay(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    GanttTimelineSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved