Migrating the Menu Extension

To migrate the Telerik UI Menu Extension for ASP.NET MVC to Telerik UI for ASP.NET MVC, use the available and updated API.

  • The following example demonstrates the change when working with animations.

    
        Html.Telerik().Menu().Name("SampleMenu")
            .Effects(effects => effects.Slide())
    
        Html.Kendo().Menu().Name("SampleMenu")
            .Animation(animation => animation
                .Open(open => open.FadeIn(FadeDirection.Down)
            )
    
  • Telerik UI for ASP.NET MVC does not support action syntax, that is, “() => {}”. The helpers do not feature the OnLoad event anymore and require you to use $(document).ready() instead.


    Html.Telerik().Menu().Name("Menu")
        .ClientEvents(events => events
            .OnChange(“change”)
        )
    Html.Kendo().Menu().Name("Menu")
        .Events(events => events
            .Change(“change”)
        )

See Also

In this article
Not finding the help you need? Improve this article