SpreadsheetCommandEventArgs Class

Event arguments passed to RadzenSpreadsheet's CommandExecuting callback. The handler may call PreventDefault to veto the command before it is pushed onto the undo stack.

Inheritance

Object

EventArgs

Spreadsheet.SpreadsheetCommandEventArgs

Inherited Members

EventArgs.Empty

Namespace: Radzen.Blazor.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public class SpreadsheetCommandEventArgs : EventArgs

Constructors

SpreadsheetCommandEventArgslink

Initializes a new instance of SpreadsheetCommandEventArgs.

Declaration
public SpreadsheetCommandEventArgs(Spreadsheet.ICommand command)
Parameters
Type Name Description
Spreadsheet.ICommand command

Properties

Commandlink

The command about to be executed.

Declaration
public Spreadsheet.ICommand Command { get; }
Property Value
Type Description
Spreadsheet.ICommandThe command about to be executed.

DefaultPreventedlink

Returns true once PreventDefault has been called.

Declaration
public bool DefaultPrevented { get; }
Property Value
Type Description
boolReturns true once PreventDefault has been called.

Methods

PreventDefaultlink

Prevents the command from running. The host's Execute will return false. Must be called synchronously from the handler — async handlers that only call this after an await will not gate the command.

Declaration
public void PreventDefault()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙