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

ActionSheetBuilder

Properties

WriteAction - Func

Methods

ActionButtons(System.Action)

A JavaScript array that contains the ActionSheet's action buttons configuration. They will be rendered in the footer of the widget.

Parameters

configurator - System.Action<ActionSheetActionButtonFactory>

The configurator for the actionbuttons setting.

Adaptive(System.Boolean)

When the ActionSheet is adaptive, it occupies the full width of the screen and has the option to cover the entire screen if the fullscreen is set to true as well.

Parameters

value - System.Boolean

The value for Adaptive

Adaptive()

When the ActionSheet is adaptive, it occupies the full width of the screen and has the option to cover the entire screen if the fullscreen is set to true as well.

CloseButton(System.Boolean)

Whether a close button would be rendered in the titlebar. A title needs to be set to get the titlebar rendered.

Parameters

value - System.Boolean

The value for CloseButton

CloseButton()

Whether a close button would be rendered in the titlebar. A title needs to be set to get the titlebar rendered.

ContentTemplate(System.String)

The text or the function whose result will be shown within the ActionSheet. By default, the ActionSheet will display the content of the target element. The content template will be disregarded if there are items defined in the widget options.

Parameters

value - System.String

The value for ContentTemplate

ContentTemplateId(System.String)

The text or the function whose result will be shown within the ActionSheet. By default, the ActionSheet will display the content of the target element. The content template will be disregarded if there are items defined in the widget options.

Parameters

templateId - System.String

The ID of the template element for ContentTemplate

ContentTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The text or the function whose result will be shown within the ActionSheet. By default, the ActionSheet will display the content of the target element. The content template will be disregarded if there are items defined in the widget options.

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The view that contains the template for ContentTemplate

ContentTemplateHandler(System.String)

The text or the function whose result will be shown within the ActionSheet. By default, the ActionSheet will display the content of the target element. The content template will be disregarded if there are items defined in the widget options.

Parameters

templateHandler - System.String

The handler that returs the template for ContentTemplate

ContentTemplate(Kendo.Mvc.UI.TemplateBuilder)

The text or the function whose result will be shown within the ActionSheet. By default, the ActionSheet will display the content of the target element. The content template will be disregarded if there are items defined in the widget options.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the contenttemplate.

FooterTemplate(System.String)

The text or the function whose result will be shown within the footer of the ActionSheet. The footer template will be disregarded if there are actionButtons defined in the widget options.

Parameters

value - System.String

The value for FooterTemplate

FooterTemplateId(System.String)

The text or the function whose result will be shown within the footer of the ActionSheet. The footer template will be disregarded if there are actionButtons defined in the widget options.

Parameters

templateId - System.String

The ID of the template element for FooterTemplate

FooterTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The text or the function whose result will be shown within the footer of the ActionSheet. The footer template will be disregarded if there are actionButtons defined in the widget options.

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The view that contains the template for FooterTemplate

FooterTemplateHandler(System.String)

The text or the function whose result will be shown within the footer of the ActionSheet. The footer template will be disregarded if there are actionButtons defined in the widget options.

Parameters

templateHandler - System.String

The handler that returs the template for FooterTemplate

FooterTemplate(Kendo.Mvc.UI.TemplateBuilder)

The text or the function whose result will be shown within the footer of the ActionSheet. The footer template will be disregarded if there are actionButtons defined in the widget options.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the footertemplate.

Fullscreen(System.Boolean)

Specifies whether the adaptive actionsheet would cover the entire screen when opened.

Parameters

value - System.Boolean

The value for Fullscreen

Fullscreen()

Specifies whether the adaptive actionsheet would cover the entire screen when opened.

Items(System.Action)

A JavaScript array that contains the ActionSheet's items configuration.

Parameters

configurator - System.Action<ActionSheetItemFactory>

The configurator for the items setting.

Subtitle(System.String)

Specifies the subtitle of the component. Requires the title to be configured in order to have the titlebar rendered.

Parameters

value - System.String

The value for Subtitle

Title(System.String)

Specifies the title of the component

Parameters

value - System.String

The value for Title

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<ActionSheetEventBuilder>

The client events action.

Example


            @(Html.Kendo().ActionSheet()
                  .Name("ActionSheet")
                  .Events(events => events
                      .Activate("onActivate")
                  )
            )

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?