Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenDialog

    Inheritance
    object
    ComponentBase
    RadzenDialog
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.SetParametersAsync(ParameterView)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenDialog : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    RadzenDialog()

    Declaration
    public RadzenDialog()

    Properties

    CloseSideDialogAriaLabel

    Gets or sets the close side dialog aria label text.

    Declaration
    [Parameter]
    public string CloseSideDialogAriaLabel { get; set; }
    Property Value
    Type Description
    string

    The close side dialog aria label text.

    Methods

    BuildRenderTree(RenderTreeBuilder)

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

    Close(dynamic)

    Closes the currently open dialog and returns the specified result.

    Declaration
    public Task Close(dynamic result)
    Parameters
    Type Name Description
    dynamic 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
    Task

    A Task that represents the asynchronous operation of closing the dialog.

    Dispose()

    Declaration
    public void Dispose()

    DisposeAsync()

    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
    ValueTask

    A ValueTask that represents the asynchronous disposal operation.

    OnAfterRenderAsync(bool)

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

    OnInitialized()

    Declaration
    protected override void OnInitialized()
    Overrides
    ComponentBase.OnInitialized()

    Open(string?, Type, Dictionary<string, object>, DialogOptions)

    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
    Task

    A Task that represents the asynchronous operation of opening the dialog.

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT