SpreadsheetCellEditContext Class

Provides context for custom cell editors in a spreadsheet.

Inheritance

Object

Spreadsheet.SpreadsheetCellRenderContext

Spreadsheet.SpreadsheetCellEditContext

Namespace: Radzen.Blazor.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public class SpreadsheetCellEditContext : Spreadsheet.SpreadsheetCellRenderContext

Properties

ValueLink to this section

Gets or sets the text being edited. Editing started with F2 or a double-click begins with the cell's value as shown in the formula bar; editing started by typing begins with the typed text. Update it as the user types: when the user moves to another cell, the spreadsheet commits this text.

Declaration
public string Value { get; set; }
Property Value
Type Description
stringGets or sets the text being edited. Editing started with F2 or a double-click begins with the cell's value as shown in the formula bar; editing started by typing begins with the typed text. Update it as the user types: when the user moves to another cell, the spreadsheet commits this text.

Methods

CancelLink to this section

Cancels the current edit operation.

Declaration
public void Cancel()

CommitAsyncLink to this section

Commits the edited value to the cell. The value is converted to a string with the workbook culture (the same culture the commit re-parses with) and applied through the undo/redo system.

Declaration
public Task CommitAsync(object value)
Parameters
Type Name Description
object value
Returns
Type Description
Task
An error has occurred. This app may no longer respond until reloaded. Reload 🗙