Blazor Dialog - Overview

Configurator
  • Overview.razor
Loading the demo source code...please wait.
blazor ui ninja image

The Dialog component is part of Telerik UI for Blazor, a professional grade UI library with 100 native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

Description

The Telerik UI for Blazor Dialog is a standalone UI component that presents information to the user through rendering a modal popup.

In the current demo, you can see a primary example of how to implement a Telerik dialog component in Blazor applications. To use the component, you need to add the tag to your razor file, set the Visible and Title properties and add the required content within the RenderFragment parameter. Additionally, you can configure the needed dialog buttons and customize their layout by using the ButtonsLayout property.

The Telerik Blazor Dialog includes a header that contains the title and the Close Action button for the control. In case you don't want to render the dialog header, set the ShowCloseButton to false and skip setting a Title. The Telerik Blazor Dialog supports one and two-way binding and provides various parameters to configure the component. In addition to setting the visibility, title and dialog content, you can customize the CSS class, height, width and focused element selector and define the behavior of the dialog when the overlay is clicked. You can also take advantage of the Refresh method, which redraws the component, and the VisibleChanged event, which gets notifications when the user tries to close the Dialog. For example, you can keep the dialog open and prevent users from closing it by effectively cancelling the VisibleChanged event and not propagating the new visibility state to the variable the Visible property is bound to.

This Dialogs Overview example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

Additional Resources

An error has occurred. This application may no longer respond until reloaded.
Reload