Class GanttTaskConstraintEventArgs<TValue>
Provides event argument data for the OnTaskConstraint event.
Inherited Members
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.Gantt.dll
Syntax
public class GanttTaskConstraintEventArgs<TValue>
Type Parameters
| Name | Description |
|---|---|
| TValue | Specifies the type of the task model. |
Constructors
GanttTaskConstraintEventArgs()
Declaration
public GanttTaskConstraintEventArgs()
Properties
ConstraintValidateType
Gets the type of constraint that is being validated for the task.
Declaration
public TaskConstraintType ConstraintValidateType { get; }
Property Value
| Type | Description |
|---|---|
| TaskConstraintType | A TaskConstraintType value that represents the constraint validation type. |
Remarks
This property indicates which task constraint rule is currently being evaluated.
Data
Gets the task data associated with the constraint event.
Declaration
public TValue Data { get; }
Property Value
| Type | Description |
|---|---|
| TValue | An instance of the task data that is affected by the constraint validation. |
Remarks
This property contains the underlying task record on which the constraint validation is performed.
IsRespectConstraint
Gets or sets a value indicating whether the task constraint is respected when a scheduling conflict occurs.
Declaration
public bool IsRespectConstraint { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Remarks
This property determines how a constraint violation is processed
when the OnTaskConstraint event is raised.
When set to true, the violated constraint is respected
and the current scheduling action is reverted.
When set to false, the Scheduling Conflict dialog is displayed
and the scheduling operation continues according to the selected
conflict-resolution option.
The default value is false.