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

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

Definition

Constructors

Initializes a new instance of the ActionSheet class.

C#
public ActionSheetBuilder(ActionSheet component)
Parameters:componentActionSheet

The component.

Methods

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

C#
public ActionSheetBuilder ActionButtons(Action<ActionSheetActionButtonFactory> configurator)
Parameters:configuratorAction<ActionSheetActionButtonFactory>

The action that configures the actionbuttons.

Returns:

ActionSheetBuilder

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

C#
public ActionSheetBuilder ActionButtonsAlignment(ActionButtonsAlignment value)
Parameters:valueActionButtonsAlignment

The value that configures the actionbuttonsalignment.

Returns:

ActionSheetBuilder

Determines the orientation of the action buttons.

C#
public ActionSheetBuilder ActionButtonsOrientation(ActionButtonsOrientation value)
Parameters:valueActionButtonsOrientation

The value that configures the actionbuttonsorientation.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder Adaptive(bool value)
Parameters:valuebool

The value that configures the adaptive.

Returns:

ActionSheetBuilder

Configures the opening and closing animations of the ActionSheet.

C#
public ActionSheetBuilder Animation(Action<PopupAnimationBuilder> configurator)
Parameters:configuratorAction<PopupAnimationBuilder>

The configurator that will configure the opening and closing animation.

Returns:

ActionSheetBuilder

Disables or opens the animation.

C#
public ActionSheetBuilder Animation(bool value)
Parameters:valuebool

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

Returns:

ActionSheetBuilder

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

C#
public ActionSheetBuilder CloseButton(bool value)
Parameters:valuebool

The value that configures the closebutton.

Returns:

ActionSheetBuilder

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).

C#
public ActionSheetBuilder CloseOnClick(bool value)
Parameters:valuebool

The value that configures the closeonclick.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder ContentTemplate(string value)
Parameters:valuestring

The value that configures the contenttemplate.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder ContentTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the contenttemplate.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder ContentTemplateHandler(string value)
Parameters:valuestring

The value that configures the contenttemplate.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder ContentTemplateId(string value)
Parameters:valuestring

The value that configures the contenttemplate.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder ContentTemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the contenttemplate.

Returns:

ActionSheetBuilder

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

C#
public ActionSheetBuilder Events(Action<ActionSheetEventBuilder> configurator)
Parameters:configuratorAction<ActionSheetEventBuilder>Returns:

ActionSheetBuilder

Example:
C#
@(Html.Kendo().ActionSheet()
.Name("actionsheet")
.Events(events =&gt; events
.Open("onOpen")
)
)

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.

C#
public ActionSheetBuilder FooterTemplate(string value)
Parameters:valuestring

The value that configures the footertemplate.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder FooterTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the footertemplate.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder FooterTemplateHandler(string value)
Parameters:valuestring

The value that configures the footertemplate.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder FooterTemplateId(string value)
Parameters:valuestring

The value that configures the footertemplate.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder FooterTemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the footertemplate.

Returns:

ActionSheetBuilder

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

C#
public ActionSheetBuilder Fullscreen(bool value)
Parameters:valuebool

The value that configures the fullscreen.

Returns:

ActionSheetBuilder

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

C#
public ActionSheetBuilder Items(Action<ActionSheetItemFactory> configurator)
Parameters:configuratorAction<ActionSheetItemFactory>

The action that configures the items.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder StartButton(Action<ActionSheetStartButtonSettingsBuilder> configurator)
Parameters:configuratorAction<ActionSheetStartButtonSettingsBuilder>

The action that configures the startbutton.

Returns:

ActionSheetBuilder

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

C#
public ActionSheetBuilder Subtitle(string value)
Parameters:valuestring

The value that configures the subtitle.

Returns:

ActionSheetBuilder

Specifies the title of the component

C#
public ActionSheetBuilder Title(string value)
Parameters:valuestring

The value that configures the title.

Returns:

ActionSheetBuilder