Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

UndoEngine Class

Provides functionality to an undo/redo engine in the Web Report Designer.

#Declaration

TypeScript
export class UndoEngine extends Disposable

#Properties

#isDirty Property

Provides access to a value that specifies whether a report has been changed.

#Declaration

TypeScript
isDirty: ko.Computed<boolean>

#Property Value

Type Description
Computed<boolean>

A knockout computed boolean object, whose value is true if the report has been modified, and false otherwise.

#redoEnabled Property

Provides access to a value that specifies whether the redo action can currently be performed.

#Declaration

TypeScript
redoEnabled: ko.Observable<boolean>

#Property Value

Type Description
Observable<boolean>

A knockout observable boolean object, whose value is true if the redo action can be performed, and false otherwise.

#undoEnabled Property

Provides access to a value that specifies whether the undo action can currently be performed.

#Declaration

TypeScript
undoEnabled: ko.Observable<boolean>

#Property Value

Type Description
Observable<boolean>

A knockout observable boolean object, whose value is true if the undo action can be performed, and false otherwise.

#Methods

#clearHistory Method

Clears information about edit operations made to a report, so they cannot not be undone.

#Declaration

TypeScript
clearHistory(): void

#getCurrentChangeSet Method

#Declaration

TypeScript
getCurrentChangeSet(): _LatestChangeSet

#Returns

Type
_LatestChangeSet

#redo Method

Reverses the results of the last undo action.

#Declaration

TypeScript
redo(): void

#undo Method

Undoes the last edit action in a report.

#Declaration

TypeScript
undo(
    removeNode?: boolean
): void

#Parameters

Name Type
removeNode boolean

#undoAll Method

Undoes all changes made to a report.

#Declaration

TypeScript
undoAll(): void