Class GanttUndoRedoEventArgs<TValue>
Provides data for the OnUndoRedo event in the Gantt chart.
Inherited Members
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.dll
Syntax
public class GanttUndoRedoEventArgs<TValue>
Type Parameters
| Name | Description |
|---|---|
| TValue | The type of the record used in the Gantt chart. |
Remarks
This class provide details for undo or redo operations triggered by the OnUndoRedo event.
Constructors
GanttUndoRedoEventArgs()
Declaration
public GanttUndoRedoEventArgs()
Properties
Action
Gets the type of action performed in the Gantt chart.
Declaration
public GanttUndoRedoAction Action { get; }
Property Value
| Type | Description |
|---|---|
| GanttUndoRedoAction | A GanttUndoRedoAction value, such as Add, Edit, or Delete. |
Remarks
Defines the action to determine the specific undo or redo logic to apply. For example, Add indicates a record was added.
AddRecord
Gets the record added during an add action.
Declaration
public TValue? AddRecord { get; }
Property Value
| Type | Description |
|---|---|
| TValue | The |
Remarks
Stores the newly added task for undoing or reapplying the addition.
DeletedRecords
Gets the records deleted during a delete action.
Declaration
public List<TValue>? DeletedRecords { get; }
Property Value
| Type | Description |
|---|---|
| List<TValue> | A list of |
Remarks
Stores deleted records with their hierarchy (e.g., parent-child relationships) for restoration during undo.
IsRedo
Gets a value indicating whether the action is a redo operation.
Declaration
public bool IsRedo { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Remarks
Differentiates between undo and redo operations for the OnUndoRedo event.
ModifiedRecords
Gets the records modified by an edit action, including related rows.
Declaration
public List<TValue>? ModifiedRecords { get; }
Property Value
| Type | Description |
|---|---|
| List<TValue> | A list of |
Remarks
Includes all affected records, such as parent or dependent tasks, to support complex edit reversals.
ResourceAssignmentRecords
Gets the resource assignment data affected by the action.
Declaration
public List<object>? ResourceAssignmentRecords { get; }
Property Value
| Type | Description |
|---|---|
| List<object> | A list of resource assignment objects (cast to the appropriate type based on TResources), or |
Remarks
Tracks changes to task resource assignments, such as adding or removing resources, for undo or redo.
RowData
Gets the primary record affected by the action.
Declaration
public TValue? RowData { get; }
Property Value
| Type | Description |
|---|---|
| TValue | The |
Remarks
Represents the main record for actions like editing a specific task.
SegmentRecords
Gets the taskbar segment data affected by the action.
Declaration
public List<object>? SegmentRecords { get; }
Property Value
| Type | Description |
|---|---|
| List<object> | A list of segment objects (cast to the appropriate type based on TSegments), or |
Remarks
Tracks changes to taskbar segments, such as splitting or merging, for undo or redo.