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

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

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ExpansionPanelBuilder : WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>, IHtmlString

Inheritance: objectWidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>ExpansionPanelBuilder

Implements: IHtmlString

Inherited Members WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.ToComponent()WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.Name(string)WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.Deferred(bool)WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.ModelMetadata(ModelMetadata)WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.HtmlAttributes(object)WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.AsModule(bool)WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.Render()WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.ToHtmlString()WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.ToClientTemplate()WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.ToString()WidgetBuilderBase<ExpansionPanel, ExpansionPanelBuilder>.Componentobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ExpansionPanel class.

C#
public ExpansionPanelBuilder(ExpansionPanel component)
Parameters:componentExpansionPanel

The component.

Methods

A collection of visual animations used when ExpansionPanel is expand or collapsed through user interactions. Setting this option to false will disable all animations. is not a valid configuration.

C#
public ExpansionPanelBuilder Animation(Action<ExpansionPanelAnimationSettingsBuilder> configurator)
Parameters:configuratorAction<ExpansionPanelAnimationSettingsBuilder>

The action that configures the animation.

Returns:

ExpansionPanelBuilder

Example:
C#
@(Html.Kendo().ExpansionPanel()
.Name("ExpansionPanel")
.Animation(animation =&gt; animation
.Expand(expand =&gt; expand
.Duration(300)
.Effects("fade:in")
)
.Collapse(collapse =&gt; collapse
.Duration(300)
.Effects("fade:out")
)
)
)

A collection of visual animations used when ExpansionPanel is expand or collapsed through user interactions. Setting this option to false will disable all animations. is not a valid configuration.

C#
public ExpansionPanelBuilder Animation(bool enabled)
Parameters:enabledbool

Enables or disables the animation option.

Returns:

ExpansionPanelBuilder

Example:
C#
@(Html.Kendo().ExpansionPanel()
.Name("ExpansionPanel")
.Animation(true)
)

The class of the collapse icon.

C#
public ExpansionPanelBuilder CollapseIconClass(string value)
Parameters:valuestring

The value that configures the collapseiconclass.

Returns:

ExpansionPanelBuilder

The HTML string representing the associated content for the component.

C#
public ExpansionPanelBuilder Content(Action value)
Parameters:valueAction

The value for the associated content.

Returns:

ExpansionPanelBuilder

Example:
C#
@(Html.Kendo().ExpansionPanel()
.Name("expansionPanel")
.Content(() =&gt;
{
&lt;strong&gt;ExpansionPanel content&lt;/strong&gt;
})
)

The HTML string representing the associated content for the component.

C#
public ExpansionPanelBuilder Content(Func<object, object> value)
Parameters:valueFunc<object, object>

The value for the associated content.

Returns:

ExpansionPanelBuilder

Example:
C#
@(Html.Kendo().ExpansionPanel()
.Name("expansionPanel")
.Content(@&lt;strong&gt; Hello World!&lt;/strong&gt;)
)

The HTML string representing the associated content for the component.

C#
public ExpansionPanelBuilder Content(string value)
Parameters:valuestring

The value for the associated content.

Returns:

ExpansionPanelBuilder

Example:
C#
@(Html.Kendo().ExpansionPanel()
.Name("expansionPanel")
.Content("Hello World!")
)

If set to true the widget will be disabled.

C#
public ExpansionPanelBuilder Disabled(bool value)
Parameters:valuebool

The value that configures the disabled.

Returns:

ExpansionPanelBuilder

Configures the client-side events.

C#
public ExpansionPanelBuilder Events(Action<ExpansionPanelEventBuilder> configurator)
Parameters:configuratorAction<ExpansionPanelEventBuilder>

The client events action.

Returns:

ExpansionPanelBuilder

Example:
C#
@(Html.Kendo().ExpansionPanel()
.Name("ExpansionPanel")
.Events(events =&gt; events
.Expand("onExpand")
)
)

If set to true the widget will be expanded by default.

C#
public ExpansionPanelBuilder Expanded(bool value)
Parameters:valuebool

The value that configures the expanded.

Returns:

ExpansionPanelBuilder

The class of the collapse icon.

C#
public ExpansionPanelBuilder ExpandIconClass(string value)
Parameters:valuestring

The value that configures the expandiconclass.

Returns:

ExpansionPanelBuilder

The height of the widget. Numeric values are treated as pixels.

C#
public ExpansionPanelBuilder Height(double value)
Parameters:valuedouble

The value that configures the height.

Returns:

ExpansionPanelBuilder

The subtitle of the widget.

C#
public ExpansionPanelBuilder SubTitle(string value)
Parameters:valuestring

The value that configures the subtitle.

Returns:

ExpansionPanelBuilder

The title of the widget.

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

The value that configures the title.

Returns:

ExpansionPanelBuilder

If set to false the user will not be able to expand/collapse the widget.

C#
public ExpansionPanelBuilder Toggleable(bool value)
Parameters:valuebool

The value that configures the toggleable.

Returns:

ExpansionPanelBuilder