Completed
Last Updated: 05 Aug 2024 13:30 by ADMIN
Release 6.1.0
Felix
Created on: 10 Jul 2024 13:28
Category: ToolBar
Type: Bug Report
1
ToolBarButton ignores the Visible property when placed inside a ToolBarButtonGroup

The "Bold" button in the code snippet below remains visible despite the fact that it's Visible property is false

<TelerikToolBar>

    <ToolBarButtonGroup>
        <ToolBarButton Icon="@SvgIcon.Bold" Visible="false">Bold</ToolBarButton>
        <ToolBarButton Icon="@SvgIcon.Italic">Italic</ToolBarButton>
        <ToolBarButton Icon="@SvgIcon.Underline">Underline</ToolBarButton>
    </ToolBarButtonGroup>
</TelerikToolBar>

 

1 comment
ADMIN
Svetoslav Dimitrov
Posted on: 17 Jul 2024 08:17

Hello Felix,

Thank you for reporting that to us. As a small token of our appreciation, I have awarded your account with Telerik Points. 

As a workaround, you can use a custom CSS class to hide the button:

<style>
    .hidden-button{
        display:none;
    }
</style>

<TelerikToolBar>

    <ToolBarButtonGroup>
        <ToolBarButton Icon="@SvgIcon.Bold" Class="hidden-button">Bold</ToolBarButton>
        <ToolBarButton Icon="@SvgIcon.Italic">Italic</ToolBarButton>
        <ToolBarButton Icon="@SvgIcon.Underline">Underline</ToolBarButton>
    </ToolBarButtonGroup>
</TelerikToolBar>

@code {
    public bool isSelected { get; set; } = true;
}

Regards,
Svetoslav Dimitrov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!