The Blazor Dialog opens modal dialogs and side panels from code via DialogService, with Alert and Confirm helpers, custom content, sizing, and async results.
NOTE: Please ensure you have reviewed the instructions in Get Started , as there are pre-requirements when using this component.
Use DialogService to open any Blazor component or page as a modal dialog.
Display a dialog inline within the page content without using the DialogService.
Show a busy/loading indicator dialog while processing long-running operations.
Use DialogService.Confirm() to display a confirmation dialog with customizable buttons and messages.
Use DialogService.Alert() to display simple alert messages to users.
Use the CanClose callback to prevent a dialog from closing when the user clicks the X button, overlay, or presses ESC. Return false to block the close. Programmatic Close() calls always succeed.
Enable CloseDialogOnOverlayClick to allow users to close the dialog by clicking on the overlay backdrop.
Position dialogs on the side of the screen using custom CSS classes for slide-in panel effects.
Apply custom CSS classes to dialogs for complete styling customization and theming.
Dynamically update dialog properties like title, width, and height at runtime using the cascading dialog reference.
Use the Dialog
Cascading Value
to update dialog properties
Inject DialogService and call Open or OpenAsync with a component or content; OpenAsync returns the dialog's result when it closes.
Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under
MIT