Display Notification count in profile or menu

Hello Team,
I would like to display user notification count in my application as a profile badge similar to this
image

Kindly guide how to proceed.

Thanks !

It seems that you would need a notification count variable in your layout, bound to the Badge's Text property.

In your layout .razor file:

<RadzenBadge BadgeStyle="BadgeStyle.Info" IsPill="true" Text=@(NotificationCount) />

@code
{
    private int NotificationCount { get; set; }
}
2 Likes

Thanks a lot for your valuable guidance :slight_smile: