Kendo.Mvc.UI.Fluent.DrawerBuilder

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

Methods

Position(System.String)

The position of the drawer. Can be left (default) or right.

Parameters

value System.String

The value that configures the position.

Mode(System.String)

Determines how the Kendo UI Drawer will interact with the associated content. The default one (overlay) will simply overlap the associated content with overlay effect. On the other hand "push" mode will show the drawer next to associated cotent. The associated content will shrink its content.

Parameters

value System.String

The value that configures the mode.

Template(System.String)

Specifies the drawer's content.

Parameters

value System.String

The value that configures the template.

TemplateId(System.String)

Specifies the drawer's content.

Parameters

value System.String

The value that configures the template.

MinHeight(System.Double)

Specifies the minimum height for the drawer in push mode. The overlay mode takes 100% of the page height.

Parameters

value System.Double

The value that configures the minheight.

Mini(System.Boolean)

Enables or configures the mini mode for the Kendo UI Drawer. This is a compact view that is displayed when the Kendo UI Drawer is collapsed. Usually it used to show only the icons when the drawer content contains icon and text for an item. When set to true it uses the main template.

Parameters

enabled System.Boolean

Enables or disables the mini option.

Mini(System.Action<Kendo.Mvc.UI.Fluent.DrawerMiniSettingsBuilder>)

Enables or configures the mini mode for the Kendo UI Drawer. This is a compact view that is displayed when the Kendo UI Drawer is collapsed. Usually it used to show only the icons when the drawer content contains icon and text for an item. When set to true it uses the main template.

Parameters

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

The action that configures the mini.

SwipeToOpen(System.Boolean)

If set to false, swiping the associated content will not activate the drawer. In this case, the drawer will only be open by calling the show method. should be disabled for browsers, which use side swiping gestures for back/forward navigation, such as iOS Safari. Otherwise, users should swipe from an inner part of the view, and not from the view edge.

Parameters

value System.Boolean

The value that configures the swipetoopen.

Width(System.Double)

Defines a specific width for the Kendo UI Drawer when expanded.

Parameters

value System.Double

The value that configures the width.

Content(System.Action)

The HTML string representing the associated content for the Drawer widget.

Parameters

value System.Action

The value for the associated content.

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

The HTML string representing the associated content for the Drawer widget.

Parameters

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

The value for the associated content.

Content(System.String)

The HTML string representing the associated content for the Drawer widget.

Parameters

value System.String

The value for the associated content.

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

Configures the client-side events.

Parameters

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

The client events action.

Example (ASPX)

<%= Html.Kendo().Drawer()
    .Name("Drawer")
    .Events(events => events
        .Hide("onHide")
    )
%>
In this article
Not finding the help you need?