New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Hybrid Layout HtmlHelper Overview

The hybrid Telerik UI Layout HtmlHelper for ASP.NET MVC is a server-side wrapper for the hybrid Kendo UI Layout widget.

Basic Configuration

  1. Create a new ASP.NET MVC 5 application. If you have installed the Telerik UI for ASP.NET MVC Visual Studio Extensions, create a Telerik UI for ASP.NET MVC application. If you decide not to use the Telerik UI for ASP.NET MVC Visual Studio Extensions, follow the steps from the introductory article to add Telerik UI for ASP.NET MVC to the application.
  2. Open HomeController.cs and modify the Index action method.

    public ActionResult Index()
        return View();
  3. Add a Kendo UI Layout to the Index view.

        .Header(obj =>
                .Content(navbar =>
                            .HtmlAttributes(new { @class = "nav-button" })
                            .Url(Url.RouteUrl(new { controller = "suite" }))
                        @navbar.ViewTitle("iOS Platform")
        .Footer(obj =>
                .Items(items => {
  4. Add the View that will use the Layout.

        .Layout("layout") // the `Name` of the layout
                    This examples shows the platform specific layouts.
                    Change the OS to see how the header and footer changes.
  5. Initialize the mobile application.

  6. Build and run the application.


You can subscribe to all hybrid Layout events.

The following example demonstrates how to subscribe to events by a handler name.

        .Events(events => events

    function onShow() {
        // Handle the show event.

Referencing Existing Instances

You can reference a hybrid Layout instance by using the code from the following example. Once a reference is established, use the hybrid Layout client-side API to control its behavior.

    $(function() {
        // The Name() of the Layout is used to get its client-side instance.
        var layout = $("#MobileLayout").data("kendoMobileLayout");

See Also

In this article