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

Kendo UI ExpansionPanel component

Definition

Constructors

Initializes a new instance of the ExpansionPanel class.

C#
public ExpansionPanel(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

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 ExpansionPanelAnimationSettings Animation { get; set; }

The name of the collapse icon.

C#
public string CollapseIconClass { get; set; }

The HTML string representing the associated content for the Drawer widget

C#
public HtmlTemplate Content { get; }

If set to true the widget will be disabled.

C#
public bool? Disabled { get; set; }

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

C#
public bool? Expanded { get; set; }

The class of the expand icon.

C#
public string ExpandIconClass { get; set; }

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

C#
public double? Height { get; set; }

The subtitle of the widget.

C#
public string SubTitle { get; set; }

The title of the widget.

C#
public string Title { get; set; }

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

C#
public bool? Toggleable { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)