[Solved] Badge Boundary

2 Answers 127 Views
Badge
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Joel asked on 10 Feb 2026, 05:02 PM | edited on 10 Feb 2026, 05:03 PM
Any ideas on how I can get the Badge to pop beyond the constraints of its host/parent?  Or, can I put the badge to the upper-middle left so it fits better inside the container?




        <TelerikAppBar Class="gsi-background-color">
            <AppBarSection>
                <NavLink href="@ProfileService.HomeUrl" class="gsi-navlink gsi-padding-10 gsi-padding-10-top-bottom">
                    Home
                </NavLink>
            </AppBarSection>

            <AppBarSection>
                <NavLink href="@AboutUrl" class="gsi-navlink gsi-padding-10 gsi-padding-10-top-bottom">
                    About
                </NavLink>
            </AppBarSection>

            <AppBarSpacer />

            <AppBarSection>
                <div class="input-group">

                    @if (ProfileService.IsNotNull())
                    {
                        if (ProfileService.IsInRole(SecurityRoles.Admin, Direction.Up))
                        {
                            <TelerikButton OnClick="OnRouteToNotifications" Class="gsi-button-icon-32">
                                <img src="/images/32/Nofications.white.32x32.png" height="32" width="32" />
                                @if (MessageCount > 0)
                                {
                                    <TelerikBadge VerticalAlign="@BadgeVerticalAlign.Top"
                                                  Class="gsi-background-color-darkgray gsi-color-white">
                                        @MessageCount
                                    </TelerikBadge>
                                }
                            </TelerikButton>

                            <TelerikButton OnClick="@OnRouteToProfile" Class="gsi-button-icon-32">
                                <img src="/images/32/PersonV2.png" height="32" width="32" />
                            </TelerikButton>

                            <NavLink href="@UserDetailsUrl" class="gsi-navlink gsi-padding-10-top-bottom gsi-cursor-pointer">
                                @UserDisplayName
                            </NavLink>

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Feb 2026, 09:46 AM

Hello Joel,

The host/parent of the Badge is the Button, and the Badge already is beyond the Button's boundaries.

If the built-in Badge position options do not meet your requirements, then you can set a custom CSS class to it and move it with margin styles. Keep in mind that the AppBar has an overflow:hidden style, so the Badge will be clipped if you move it up from its current position.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
answered on 13 Feb 2026, 05:16 PM
I did not see the Position attribute.  That should do it.
Tags
Badge
Asked by
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Answers by
Dimo
Telerik team
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Share this question
or