I am porting a WebForms application to ASP.NET Core MVC, and I'm having trouble moving from the RadMenu (Telerik UI for .NET AJAX) to the menu component in Telerik UI for ASP.NET Core. After going down many blind alleys I'm stumped as to how to bind my data (an array of a custom type which includes menu text, target URLs, and more). My menu has a collection of top-level items and some of them have sub-menu items. It seems like this should be pretty straightforward but I can't find an example or documentation that explains how to bind my menu to an array.
I think I need to do something like this:
@(Html.Kendo().Menu()
.Name("MyMenu")
.DataTextField("Text")
.Action(<action>)
.DataSource(???)
.Model(model => model.Children("MenuItems"))) <<<--- This came from an example, I don't know what it does)
)
Can someone point me to a simple example?