Is it possible to place labels above toolbar menus?

1 Answer 8 Views
ToolBar
Martin
Top achievements
Rank 1
Martin asked on 01 Oct 2025, 02:50 PM

I was wondering if it is possible to place labels above toolbar drop-down menus?

I've tried various options without success.

 

1 Answer, 1 is accepted

Sort by
1
Accepted
Hristian Stefanov
Telerik team
answered on 02 Oct 2025, 10:16 AM

Hi Martin,

To place labels above the toolbar drop-down menus, within the ToolBarTemplateItem, wrap each menu within a TelerikFloatingLabel. Here is an example:

<TelerikToolBar>
    <ToolBarTemplateItem>
        <TelerikFloatingLabel Text="Roles">
            <TelerikDropDownList Id="role"
                                 Data="@Roles"
                                 Value="@SelectedRole"
                                 ValueChanged="@((string v) => RoleChange(v))">
            </TelerikDropDownList>
        </TelerikFloatingLabel>
    </ToolBarTemplateItem>
    <ToolBarTemplateItem>
        <TelerikFloatingLabel Text="Departments">
            <TelerikDropDownList Id="department"
                                 Data="@Departments"
                                 Value="@SelectedDepartment"
                                 ValueChanged="@((string v) => DepartmentChange(v))">
            </TelerikDropDownList>
        </TelerikFloatingLabel>
    </ToolBarTemplateItem>
</TelerikToolBar>

@code {
    private string SelectedRole { get; set; }
    private List<string> Roles { get; set; } = new()
    {
        "Manager", "QA", "Developer", "Support"
    };

    private string SelectedDepartment { get; set; }
    private List<string> Departments { get; set; } = new()
    {
        "HR", "Finance", "IT", "Marketing", "Sales"
    };

    protected override void OnInitialized()
    {
        SelectedRole = Roles.FirstOrDefault();
        SelectedDepartment = Departments.FirstOrDefault();
    }

    private void RoleChange(string newRole)
    {
        SelectedRole = newRole;
    }

    private void DepartmentChange(string newDepartment)
    {
        SelectedDepartment = newDepartment;
    }
}

    Regards,
    Hristian Stefanov
    Progress Telerik

    Your perspective matters! Join other professionals in the State of Designer-Developer Collaboration 2025: Workflows, Trends and AI survey to share how AI and new workflows are impacting collaboration, and be among the first to see the key findings.
    Start the 2025 Survey
    Martin
    Top achievements
    Rank 1
    commented on 02 Oct 2025, 12:25 PM

    Thanks, this is exactly what I was looking for.
    Tags
    ToolBar
    Asked by
    Martin
    Top achievements
    Rank 1
    Answers by
    Hristian Stefanov
    Telerik team
    Share this question
    or