Edit this page

Kendo.Mvc.UI.Fluent.ResponsivePanelBuilder

Defines the fluent API for configuring the Kendo ResponsivePanel for ASP.NET MVC.

Methods

Content(System.Action)

Sets the HTML content which the panel will hide.

Parameters

value System.Action

The action which renders the content.

Example (ASPX)

<% Html.Kendo().ResponsivePanel()
    .Name("sidebar")
    .Content(() =>
    {
        %>
        <strong>Panel content</strong>
        <%
    })
%>

Content(System.Func<System.Object,System.Object>)

Sets the HTML content which the panel will hide

Parameters

value System.Func<System.Object,System.Object>

The Razor inline template

Example (ASPX)

@(Html.Kendo().ResponsivePanel()
    .Name("sidebar")
    .Content(@<strong> Hello World!</strong>))

Content(System.String)

Sets the HTML content which the panel will hide as a string.

Parameters

value System.String

The action which renders the content.

AutoClose(System.Boolean)

If set to false the widget will not close when the page content is touched, after it was opened on a mobile device. You will need to call the close method when the panel needs to close.

Parameters

value System.Boolean

The value that configures the autoclose.

Breakpoint(System.Double)

Specifies the page width at which the widget will be hidden and its toggle button will become visible.

Parameters

value System.Double

The value that configures the breakpoint.

Orientation(System.String)

Specifies the direction from which the hidden element will open up, once the toggle button has been activated. Valid values are "left", "right", and "top".

Parameters

value System.String

The value that configures the orientation.

ToggleButton(System.String)

Specifies the selector for the toggle button that will show and hide the responsive panel.

Parameters

value System.String

The value that configures the togglebutton.

Events(System.Action<Kendo.Mvc.UI.Fluent.ResponsivePanelEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ResponsivePanelEventBuilder>

The client events action.

Example (ASPX)

<%= Html.Kendo().ResponsivePanel()
.Name("ResponsivePanel")
.Events(events => events
    .Close("onClose")
)
%>