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

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.

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.

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.

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.

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.

Events(System.Action)

Parameters

configurator - System.Action<ActionSheetEventBuilder>

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


            @(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 Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean)

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>

AsChildComponent()

Render()

Renders the component.

Example


            @(@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();
            )

ToHtmlString()

ToClientTemplate()

In this article
Not finding the help you need?