Requesting Dynamic Menu Code Example

2 posts, 0 answers
  1. Robert
    Robert avatar
    2 posts
    Member since:
    Aug 2014

    Posted 27 Aug 2014 Link to this post


    Does anyone have a working sample or know of complete documentation that shows how to create a dynamic menu that is built upon hierarchy settings that are retrieved from SQL Server, utilizing C# and MVC?

    Thank You in Advance!

  2. Dimo
    Dimo avatar
    8322 posts

    Posted 29 Aug 2014 Link to this post

    Hello Robert,

    Here they are:



    (for a more in-depth inspection, check the "Model Binding" Menu example in the offline ASP.NET MVC demo site, which is shipped with the UI for ASP.NET MVC package)

    @model IEnumerable<Kendo.Mvc.Examples.Models.Category>
          .BindTo(Model, mappings =>
                mappings.For<Kendo.Mvc.Examples.Models.Category>(binding => binding
                        .ItemDataBound((item, category) =>
                            item.Text = category.CategoryName;
                        .Children(category => category.Products));
                mappings.For<Kendo.Mvc.Examples.Models.Product>(binding => binding
                        .ItemDataBound((item, product) =>
                            item.Text = product.ProductName;


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. UI for ASP.NET AJAX bannerTelerik UI for ASP.NET Core is out
Back to Top