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

DrawerBuilder

Properties

WriteAction - Func

Methods

Content(System.Action)

Defines the associated content for the Drawer.

Parameters

value - System.Action

The value of the content.

Content(System.Func)

The HTML string representing the associated content for the Drawer.

Parameters

value - System.Func<Object,Object>

The value wrapped in a text tag.

Example


             @(Html.Kendo().Drawer()
               .Name("drawer")
               .Content(@<text>
                  <span>Content is here </span>
                  </text>)
             )

Content(System.String)

The HTML string representing the associated content for the Drawer.

Parameters

value - System.String

The value of the content.

Example


             @(Html.Kendo().Drawer()
               .Name("drawer")
               .Content(@"
                  <span>Content is here </span>
                ")
             )

AutoCollapse(System.Boolean)

Specifies if the Drawer will be automatically collapsed when an item is clicked.

Parameters

value - System.Boolean

The value for AutoCollapse

Expanded(System.Boolean)

Specifies if the Drawer will be expanded by default.

Parameters

value - System.Boolean

The value for Expanded

Expanded()

Specifies if the Drawer will be expanded by default.

Position(System.String)

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

Parameters

value - System.String

The value for 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 for Mode

If set to true the use could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.

Parameters

value - System.Boolean

The value for Navigatable

If set to true the use could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.

Template(System.String)

Specifies the drawer's content.

Parameters

value - System.String

The value for Template

TemplateId(System.String)

Specifies the drawer's content.

Parameters

templateId - System.String

The ID of the template element for Template

TemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

Specifies the drawer's content.

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The view that contains the template for Template

TemplateHandler(System.String)

Specifies the drawer's content.

Parameters

templateHandler - System.String

The handler that returs the template for Template

Template(Kendo.Mvc.UI.TemplateBuilder)

Specifies the drawer's content.

Parameters

template - TemplateBuilder<TModel>

A Template component 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 for MinHeight

Mini(System.Action)

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<DrawerMiniSettingsBuilder>

The configurator for the mini setting.

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.

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 for SwipeToOpen

Width(System.Double)

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

Parameters

value - System.Double

The value for Width

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<DrawerEventBuilder>

The client events action.

Example


            @(Html.Kendo().Drawer()
                  .Name("Drawer")
                  .Events(events => events
                      .Hide("onHide")
                  )
            )

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Object

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

Parameters

value - System.Boolean
In this article
Not finding the help you need?