SpreadsheetDialogBase Class

Base class for spreadsheet dialogs that provides shared DialogService injection, a localizer, and a default cancel handler.

Implements

IComponent

IHandleEvent

IHandleAfterRender

Inherited Members

ComponentBase.BuildRenderTree

ComponentBase.OnInitialized

ComponentBase.OnInitializedAsync

ComponentBase.OnParametersSet

ComponentBase.OnParametersSetAsync

ComponentBase.StateHasChanged

ComponentBase.ShouldRender

ComponentBase.OnAfterRender

ComponentBase.OnAfterRenderAsync

ComponentBase.InvokeAsync

ComponentBase.DispatchExceptionAsync

ComponentBase.SetParametersAsync

ComponentBase.RendererInfo

ComponentBase.Assets

ComponentBase.AssignedRenderMode

Namespace: Radzen.Blazor.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public abstract class SpreadsheetDialogBase : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

SpreadsheetDialogBaseLink to this section

Base class for spreadsheet dialogs that provides shared DialogService injection, a localizer, and a default cancel handler.

Declaration
protected SpreadsheetDialogBase()

Properties

CultureLink to this section

The culture used to parse and format values entered in the dialog. The spreadsheet passes its workbook culture when opening the dialog.

Declaration
public Globalization.CultureInfo Culture { get; set; }
Property Value
Type Description
Globalization.CultureInfoThe culture used to parse and format values entered in the dialog. The spreadsheet passes its workbook culture when opening the dialog.

DefaultUICultureLink to this section

The UI culture cascaded from a parent component. Dialogs render outside the component that opened them, so this resolves only when a DefaultUICulture cascade is set above the dialog host; otherwise String) falls back to CurrentUICulture.

Declaration
protected Globalization.CultureInfo DefaultUICulture { get; set; }
Property Value
Type Description
Globalization.CultureInfoThe UI culture cascaded from a parent component. Dialogs render outside the component that opened them, so this resolves only when a DefaultUICulture cascade is set above the dialog host; otherwise String) falls back to CurrentUICulture.

DialogServiceLink to this section

Gets or sets the dialog service used to close the dialog.

Declaration
protected DialogService DialogService { get; set; }
Property Value
Type Description
DialogServiceGets or sets the dialog service used to close the dialog.

Methods

LLink to this section

Returns the localized string for the specified resource key in the current UI culture.

Declaration
protected string L(string key)
Parameters
Type Name Description
string key
Returns
Type Description
string

OnCancelLink to this section

Closes the dialog without returning a result.

Declaration
protected virtual void OnCancel()

ToInvariantNumberLink to this section

Converts a numeric string entered in Culture to the canonical invariant form stored by the engine. Non-numeric text is returned verbatim.

Declaration
protected string ToInvariantNumber(string value)
Parameters
Type Name Description
string value
Returns
Type Description
string

ToLocalNumberLink to this section

Converts a canonical invariant numeric string to Culture for display. Non-numeric text is returned verbatim.

Declaration
protected string ToLocalNumber(string value)
Parameters
Type Name Description
string value
Returns
Type Description
string
An error has occurred. This app may no longer respond until reloaded. Reload 🗙