Save $100 with promo code CHEERS2025

As we are looking forward to an incredible 2025, enjoy our end-of-year promotion! Valid now through January 6th.

See Pricing

Still using Radzen Studio?
Achieve more with Radzen Blazor Studio

Radzen Blazor Studio is our new flagship product and vision of how rapid Blazor application development should be done.

Go to Radzen Blazor Studio

Dialog

This article demonstrates how to use the Dialog component. Check also the component guide and API reference.

  1. Register <RadzenDialog /> in your application main layout.
  2. Register DialogService in your application Startup or Program.
  3. Inject DialogService in your page.
  4. Execute Open<T>() or OpenAsync<T>() method of the dialog service with desired page/component type as generic argument. Optionally you can provide dialog parameters, options, etc.

Blazor declaration

@inject DialogService dialogService
...
<RadzenButton Text=@($"Show OrderID: {orderID} details") Click="@(args => dialogService.Open<DialogCardPage>($"Order {orderID}",
                        new Dictionary<string, object>() { { "OrderID", orderID } },
                        new DialogOptions(){ Width = "700px", Height = "530px", Left = "calc(50% - 350px)", Top = "calc(50% - 265px)" }))" />