RadzenDialog Class

RadzenDialog component.

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 to this section

RadzenDialog component.

Declaration
public RadzenDialog()

Properties

CloseSideDialogAriaLabelLink to this section

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 to this section

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

CloseLink to this section

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 to this section

Declaration
public void Dispose()

DisposeAsyncLink to this section

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 to this section

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

OnInitializedLink to this section

Declaration
protected override void OnInitialized()

OpenLink to this section

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 🗙