ActionSheetBuilder

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 action that configures the actionbuttons.

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 that configures the adaptive.

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 that configures the closebutton.

CloseOnClick(System.Boolean)

Determines whether the ActionSheet will close when clicking outside of it. If set to false, the ActionSheet will remain open until explicitly closed through code or by clicking the close button (if enabled).

Parameters

value - System.Boolean

The value that configures the closeonclick.

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 that configures the 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

value - System.String

The value that configures the contenttemplate.

ContentTemplateView(System.Web.Mvc.MvcHtmlString)

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.Web.Mvc.MvcHtmlString

The value that configures the 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

value - System.String

The value that configures the contenttemplate.

ContentTemplate(Kendo.Mvc.UI.Fluent.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 that configures the 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

value - System.String

The value that configures the footertemplate.

FooterTemplateView(System.Web.Mvc.MvcHtmlString)

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.Web.Mvc.MvcHtmlString

The value that configures the 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

value - System.String

The value that configures the footertemplate.

FooterTemplate(Kendo.Mvc.UI.Fluent.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 that configures the fullscreen.

Items(System.Action)

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

Parameters

configurator - System.Action<ActionSheetItemFactory>

The action that configures the items.

StartButton(System.Action)

When configured, a start button will be rendered in the left side of the header section of the ActionSheet. Typically used for navigation or back functionality. The button is only visible when title is also specified.

Parameters

configurator - System.Action<ActionSheetStartButtonSettingsBuilder>

The action that configures the startbutton.

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 that configures the subtitle.

Title(System.String)

Specifies the title of the component

Parameters

value - System.String

The value that configures the title.

ActionButtonsAlignment(Kendo.Mvc.UI.ActionButtonsAlignment)

Controls the alignment of the action buttons in the footer. This configuation works only in horizontal mode.

Parameters

value - ActionButtonsAlignment

The value that configures the actionbuttonsalignment.

ActionButtonsOrientation(Kendo.Mvc.UI.ActionButtonsOrientation)

Determines the orientation of the action buttons.

Parameters

value - ActionButtonsOrientation

The value that configures the actionbuttonsorientation.

Animation(System.Boolean)

Disables or opens the animation.

Parameters

value - System.Boolean

The value that will disable the animation. This property has effect only in adaptive mode.

Animation(System.Action)

Configures the opening and closing animations of the ActionSheet.

Parameters

configurator - System.Action<PopupAnimationBuilder>

The configurator that will configure the opening and closing animation.

Events(System.Action)

Fired when the widget opens.The event handler function context (available via the this keyword) will be set to the widget instance.

Parameters

configurator - System.Action<ActionSheetEventBuilder>

Example

Razor
 
                @(Html.Kendo().ActionSheet()
                    .Name("actionsheet")
                    .Events(events => events
                          .Open("onOpen")
                    )
                )
             

ToComponent()

Returns the internal view component.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name of the component.

Example

Razor
 
            @(Html.Kendo().Grid<OrderViewModel>()
               .Name("grid")
               .Columns(columns =>
               {
                   columns.Bound(p => p.OrderID).Filterable(false);
                   columns.Bound(p => p.Freight);
               })
               .DataSource(dataSource => dataSource
                   .Ajax()
                   .PageSize(20)
                   .Read(read => read.Action("Orders_Read", "Grid"))
               )
            )
             

Deferred(System.Boolean)

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

Parameters

deferred - System.Boolean

ModelMetadata(System.Web.Mvc.ModelMetadata)

Uses the Metadata of the Model.

Parameters

modelMetadata - System.Web.Mvc.ModelMetadata

The metadata set for the Model

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Parameters

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

AsModule(System.Boolean)

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

Parameters

value - System.Boolean

Render()

Renders the component.

Example

Razor
 
            @(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
            @( Html.Kendo().Grid(Model)
                .Name("grid")
                .DetailTemplate(product => {
                    )
                       Product Details:
                       <div>Product Name: @( product.ProductName )</div>
                       <div>Units In Stock: @( product.UnitsInStock )</div>
                    @(
                })
                .Render();
            )
             

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.

ToHtmlString()

ToClientTemplate()