alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class GanttUndoRedoEventArgs<TValue>

    Provides data for the OnUndoRedo event in the Gantt chart.

    Inheritance
    object
    GanttUndoRedoEventArgs<TValue>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 TValue record added, or null if the action is not an add operation.

    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 TValue records deleted, or null if the action is not a delete operation.

    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

    true if the action is a redo; otherwise, false for an undo action.

    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 TValue records modified, or null if the action is not an edit operation.

    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 null if the action does not involve resource assignments.

    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 TValue record edited, or null if no single record is involved.

    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 null if the action does not involve taskbar segments.

    Remarks

    Tracks changes to taskbar segments, such as splitting or merging, for undo or redo.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved