Save $100 with our Black Friday deals!

Get $100 OFF with promo code BLACKFRIDAY2024 at checkout until November 30.

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

Notification

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

  1. Register <RadzenNotification /> in your application main layout.
  2. Register NotificationService in your application Startup or Program.
  3. Inject NotificationService in your page.
  4. Execute Notify() method of the notification service with new NotificationMessage with desired properties.

Blazor declaration

@inject NotificationService notificationService
...
<RadzenButton Text="Show success notification" 
            Click="@(args => ShowNotification(new NotificationMessage() { Severity = NotificationSeverity.Success, Summary = "Success Summary", Detail = "Success Detail", Duration = 4000 }))" />