Class Accordion
The Accordion control is an interface where lists of items can be collapsed or expanded. It has several collapsible panels where only one can be expanded at a time that is useful for dashboards where space is limited. Each Accordion control has a template for its header and its content.
Inheritance
System.Object
Accordion
Implements
System.Web.IHtmlString
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.EJ.dll
Syntax
public class Accordion : Control, IHtmlString
Constructors
Accordion()
Accordion Constructor creates accordian instance with default values
Declaration
Accordion(String, AccordionProperties)
creates accordion instance with properties values as passed to it.String parameter is used for setting id of Accordion that would be used when rendered accordion control in DOM.
Declaration
public Accordion(string id, AccordionProperties propModel)
Parameters
Properties
AccordionModel
Gets or sets the Accordion properties to the model.
Declaration
public AccordionProperties AccordionModel { get; set; }
Property Value
Model
Holds the control properties
Declaration
protected override object Model { get; }
Property Value
Type |
Description |
System.Object |
|
Overrides
PluginName
Gets the plugin name of the Accordion element as 'ejAccordion'.
Declaration
public override string PluginName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
TagName
Gets or sets the name of the tag.
Declaration
public override string TagName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Methods
CreateContainer(String)
Represents an HTML-encoded string of the Accordion control that should not be encoded again.
Declaration
public override HtmlString CreateContainer(string controlId)
Parameters
Type |
Name |
Description |
System.String |
controlId |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
Overrides
CreateUnObtrusiveContainer(String)
Represents an HTML-encoded string of the Accordion control with directives.
Declaration
public override HtmlString CreateUnObtrusiveContainer(string controlId)
Parameters
Type |
Name |
Description |
System.String |
controlId |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
Overrides
RenderControl(String)
Represents an HTML element of the Accordion control.
Declaration
public override void RenderControl(string controlId)
Parameters
Type |
Name |
Description |
System.String |
controlId |
|
Overrides
RenderElement(String)
Represents the Accordion render element.
Declaration
protected HtmlTag RenderElement(string controlId)
Parameters
Type |
Name |
Description |
System.String |
controlId |
|
Returns
RenderPaneContent(AccordionBaseItem, HtmlTag)
Represents the Accordion rendering of content section.
Declaration
protected HtmlTag RenderPaneContent(AccordionBaseItem pane, HtmlTag PaneDiv)
Parameters
Returns
Declaration
protected HtmlTag RenderPaneHeader(AccordionBaseItem pane, HtmlTag headDiv)
Parameters
Returns
Implements
System.Web.IHtmlString