Unplanned
Last Updated: 21 Jul 2022 12:16 by Rick
Sylvain
Created on: 09 Oct 2019 13:26
Category: Menu
Type: Feature Request
10
Declare the menu items in markup (without code)

Is there a way to not create menu programmatically but only using "html" elements ? Something like this :

 <TelerikMenu>

    <TelerikMenuItem Text="File">

        <TelerikMenuItem Text="Open" OnClick="@OnFileOpenMenuClick"/>

        <TelerikMenuItem Text="Save" OnClick="@OnFileSaveMenuClick"/>

    </TelerikMenuItem>

 </TelerikMenu>

 


2 comments
Rick
Posted on: 21 Jul 2022 12:16
I agree, this and several other controls would benefit from the "Declarative" style of adding items.
ADMIN
Marin Bratanov
Posted on: 09 Oct 2019 13:38

Hi Gilles,

At the moment, there isn't, the menu must be data bound, it cannot be declared in the markup. This is why I moved this ticket to the public feedback portal so we can see what the demand for such a feature would be. Here's a link for you: https://feedback.telerik.com/blazor/1433539-declare-the-menu-items-in-markup-without-code.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor