New to Telerik UI for Blazor? Download free 30-day trial

Modal Window

The Window for Blazor can be modal so that the user is unable to interact with the rest of the page until it closes.

To make a modal window, set its Modal property to true.

@* Open and close a modal window *@

<TelerikWindow Modal="true" @bind-Visible="@isModalVisible">
        <strong>The Title</strong>
        I am modal so the page behind me is not available to the user.
        <WindowAction Name="Minimize" />
        <WindowAction Name="Maximize" />
        <WindowAction Name="Close" />

<TelerikButton OnClick="@( _ => isModalVisible = true )">Open the window</TelerikButton>

    bool isModalVisible { get; set; } = true;

A modal window is centered.

See Also

In this article
Not finding the help you need? Improve this article