Select theme:
This article demonstrates how to use the Dialog component. Check also the component guide and API reference.
<RadzenDialog />
in your application main layout.
DialogService
in your application Startup or Program.
DialogService
in your page.
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.
@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)" }))" />
Radzen is free to use. You can also test the premium features for 15 days.
Download NowSelect theme: