RadzenDialog Class

Inheritance

Object

ComponentBase

RadzenDialog

Implements

IComponent

IHandleEvent

IHandleAfterRender

Inherited Members

ComponentBase.OnInitializedAsync

ComponentBase.OnParametersSet

ComponentBase.OnParametersSetAsync

ComponentBase.StateHasChanged

ComponentBase.ShouldRender

ComponentBase.OnAfterRender

ComponentBase.InvokeAsync

ComponentBase.DispatchExceptionAsync

ComponentBase.SetParametersAsync

ComponentBase.RendererInfo

ComponentBase.Assets

ComponentBase.AssignedRenderMode

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenDialog : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenDialoglink

Declaration
public RadzenDialog()

Properties

CloseSideDialogAriaLabellink

Gets or sets the close side dialog aria label text.

Declaration
public string CloseSideDialogAriaLabel { get; set; }
Property Value
Type Description
stringGets or sets the close side dialog aria label text.

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

Closelink

Closes the currently open dialog and returns the specified result.

Declaration
public Task Close(object result)
Parameters
Type Name Description
object result The result to return when the dialog is closed. This can contain any data that needs to be passed back to the caller.
Returns
Type Description
TaskA Task that represents the asynchronous operation of closing the dialog.

Disposelink

Declaration
public void Dispose()

DisposeAsynclink

Disposes resources used by the dialog asynchronously. This method is typically called to clean up unmanaged resources or perform cleanup tasks for JavaScript interop involved in the dialog component.

Declaration
public ValueTask DisposeAsync()
Returns
Type Description
ValueTaskA ValueTask that represents the asynchronous disposal operation.

OnAfterRenderAsynclink

Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type Name Description
bool firstRender
Returns
Type Description
Task

OnInitializedlink

Declaration
protected override void OnInitialized()

Openlink

Opens a new dialog with specified parameters and options.

Declaration
public Task Open(string title, Type type, Dictionary<string, object> parameters, DialogOptions options)
Parameters
Type Name Description
string title The title of the dialog.
Type type The content type of the dialog, usually a component type.
Dictionary<string, object> parameters A dictionary of parameters to pass to the dialog content.
DialogOptions options Additional configuration options for the dialog, such as size or behavior.
Returns
Type Description
TaskA Task that represents the asynchronous operation of opening the dialog.
An error has occurred. This app may no longer respond until reloaded. Reload 🗙