GridSerializer.EnableGantt method
Configures the grid to display a Gantt chart in the right pane. In cases where a GridSerializer instance is populated by multiple GridSerializer objects over its lifetime, this function can only be called if ReserveGantt(String) or EnableGantt was called on the initial GridSerializer object.
Namespace: Microsoft.SharePoint.JSGrid
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub EnableGantt ( _
earliestBarBegin As DateTime, _
latestBarEnd As DateTime, _
ganttStyleInfo As GanttStyleInfo, _
ganttDependentsColumnName As String _
)
'Usage
Dim instance As GridSerializer
Dim earliestBarBegin As DateTime
Dim latestBarEnd As DateTime
Dim ganttStyleInfo As GanttStyleInfo
Dim ganttDependentsColumnName As String
instance.EnableGantt(earliestBarBegin, _
latestBarEnd, ganttStyleInfo, ganttDependentsColumnName)
public void EnableGantt(
DateTime earliestBarBegin,
DateTime latestBarEnd,
GanttStyleInfo ganttStyleInfo,
string ganttDependentsColumnName
)
Parameters
earliestBarBegin
Type: System.DateTimeSpecifies the earliest begin date for any record. It is used to determine the initial scrollbar size.
latestBarEnd
Type: System.DateTimeSpecifies the latest end date any for any record. It is used to determine the initial scrollbar size.
ganttStyleInfo
Type: Microsoft.SharePoint.JSGrid.GanttStyleInfoProvides the GanttStyleInfo object to configure the appearance of the Gantt chart.
ganttDependentsColumnName
Type: System.StringSpecifies the name of the data column in the external source table containing dependency information. Dependency information is used to represent task dependencies, which are displayed in the Gantt as arrows between Gantt bars.