MenuItem is genric in code but not in the docs

0 Answers 81 Views
Menu
Nathan
Top achievements
Rank 1
Nathan asked on 25 Jan 2024, 04:31 PM

Hi

I want to use the TelerikMenu so I'm trying to create a list of menu items to pass to the Data property

<TelerikMenu Data=menuItems>
    
</TelerikMenu>
List<MenuItem> menuItems;

and I'm getting an error: "Using the generic type 'MenuItem<TItem>' requires 1 type arguments"

but in the docs, I see it'd be used without a generic parameter: https://docs.telerik.com/blazor-ui/components/menu/overview

 

Thanks

Jay
Top achievements
Rank 1
commented on 30 Jan 2024, 01:57 PM

Ran into this as well.  You need to define a MenuItem class explained here: https://docs.telerik.com/blazor-ui/components/menu/data-binding/overview

No answers yet. Maybe you can help?

Tags
Menu
Asked by
Nathan
Top achievements
Rank 1
Share this question
or