Class Accordion
Represents the Accordion UI element.
Implements
Inherited Members
Namespace: Syncfusion.JavaScript.Web
Assembly: Syncfusion.EJ.Web.dll
Syntax
public class Accordion : CommonControl, INamingContainer, IPostBackEventHandler, IPostBackDataHandler, IUrlResolutionService
Constructors
Accordion()
Declaration
public Accordion()
Properties
AjaxSettings
Gets or sets the ajaxSettings option to load the content to the accordion control.
Declaration
public jQueryAjaxOptions AjaxSettings { get; set; }
Property Value
Type | Description |
---|---|
jQueryAjaxOptions | The ajax settings option. |
AllowKeyboardNavigation
Gets or sets the allow keyboard navigation.
Declaration
public bool AllowKeyboardNavigation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ClientSideOnActivate
Occurs after a Accordion item is active or inactive.
Declaration
public string ClientSideOnActivate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on activate. |
ClientSideOnAjaxBeforeLoad
Occurs before the AJAX content is loaded in a content panel
Declaration
public string ClientSideOnAjaxBeforeLoad { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on ajax before load. |
ClientSideOnAjaxError
Occurs after AJAX load failed action.
Declaration
public string ClientSideOnAjaxError { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on ajax error. |
ClientSideOnAjaxLoad
Occurs after the AJAX content loads.
Declaration
public string ClientSideOnAjaxLoad { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on ajax load. |
ClientSideOnAjaxSuccess
Occurs after AJAX success action.
Declaration
public string ClientSideOnAjaxSuccess { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on ajax success. |
ClientSideOnBeforeActivate
Occurs before a Accordion item is active.
Declaration
public string ClientSideOnBeforeActivate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on before activate. |
ClientSideOnBeforeInActivate
Occurs after a Accordion item is active or inactive.
Declaration
public string ClientSideOnBeforeInActivate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on before inactivate. |
ClientSideOnCreate
Occurs before a Accordion item Create.
Declaration
public string ClientSideOnCreate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on create. |
ClientSideOnDestroy
Occurs after Accordion control destroy.
Declaration
public string ClientSideOnDestroy { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on destroy. |
ClientSideOnInActivate
Occurs after a Accordion item is active or inactive.
Declaration
public string ClientSideOnInActivate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on inactivate. |
CollapseSpeed
To set the Accordion headers Collapse Speed.
Declaration
public string CollapseSpeed { get; set; }
Property Value
Type | Description |
---|---|
System.String | The collapse speed. |
Collapsible
Gets or sets the collapsible.
Declaration
public bool Collapsible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
CssClass
Gets or sets the root CSS class for Accordion theme, which is used customize.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The CSS class. |
CustomIcon
Gets or sets the custom header Icon. It accepts two key values “header”, ”selectedHeader”.
Declaration
[JsonProperty("customIcon")]
public CustomIcon CustomIcon { get; set; }
Property Value
Type | Description |
---|---|
CustomIcon | The custom icon. |
DisableItems
Gets or sets the disabled items in accordion.
Declaration
public List<int> DisableItems { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Int32> | The disabled items. |
EmptyDataText
Gets or sets the error message for Accordion.
Declaration
public string EmptyDataText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The empty text data. |
EnableAnimation
Gets or sets the animation behavior in accordion.
Declaration
public bool EnableAnimation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Enabled
Gets or sets the enabled.
Declaration
[JsonProperty("enabled")]
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
EnabledItems
Gets or sets the enabled items in accordion.
Declaration
public List<int> EnabledItems { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Int32> | The enabled items. |
EnableMultipleOpen
Gets or sets the multiple content panels to activate at a time.
Declaration
public bool EnableMultipleOpen { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
EnablePersistence
Gets or sets the enable persistence.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
EnableRTL
Gets or sets the enable RTL.
Declaration
public bool EnableRTL { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Events
Gets or sets the events API binds the action for activating the accordion header. Users can activate the header by using mouse actions such as mouse-over, mouse-up, mouse-down, and so on.
Declaration
public string Events { get; set; }
Property Value
Type | Description |
---|---|
System.String | The events. |
ExpandSpeed
Gets or sets the Accordion headers Collapse Speed.
Declaration
public string ExpandSpeed { get; set; }
Property Value
Type | Description |
---|---|
System.String | The expand speed. |
HeaderSize
Gets or sets the height for Accordion items header.
Declaration
public string HeaderSize { get; set; }
Property Value
Type | Description |
---|---|
System.String | The header size. |
Height
Gets or sets the height.
Declaration
public string Height { get; set; }
Property Value
Type | Description |
---|---|
System.String | The height. |
HeightAdjustMode
Gets or sets the height adjust mode.
Declaration
public HeightAdjustMode HeightAdjustMode { get; set; }
Property Value
Type | Description |
---|---|
HeightAdjustMode | The height adjust mode. |
Items
Gets or sets the collection of tab headers in the accordion control.
Declaration
public List<AccordionItem> Items { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<AccordionItem> | The items. |
Model
Gets or sets the Accordion property to the model.
Declaration
public AccordionProperties Model { get; set; }
Property Value
Type | Description |
---|---|
AccordionProperties |
SelectedItemIndex
Gets or sets the selected item index.
Declaration
public int SelectedItemIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The selected item index. |
SelectedItems
Gets or sets the specified indexed items of the accordion.
Declaration
public List<int> SelectedItems { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Int32> | The selected items. |
ShowRoundedCorner
Gets or sets the show rounded corner.
Declaration
public bool ShowRoundedCorner { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Width
Gets or sets the width.
Declaration
public string Width { get; set; }
Property Value
Type | Description |
---|---|
System.String | The width. |
Methods
CreateChildControls()
Create the child controls
Declaration
protected override void CreateChildControls()
DependentScripts()
Represents the dependent scripts for Accordion control.
Declaration
public List<string> DependentScripts()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | This method returns the list of dependent files which is of string type |
GetDependentFiles()
Represents the dependent Files for Accordion control.
Declaration
public override List<string> GetDependentFiles()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
Overrides
LoadViewState(Object)
Loads the server control's previously saved view state to the control.
Declaration
protected override void LoadViewState(object state)
Parameters
Type | Name | Description |
---|---|---|
System.Object | state |
Overrides
OnPreRender(EventArgs)
PreRender is the event that takes place before the HTML for a given page is generated and sent to the browser.Perform any updates before the output is rendered.
Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
PostBackEventHandler(String, Dictionary<String, Object>)
Gets a value that indicates whether the page is being loaded in response to a postback.
Declaration
public override void PostBackEventHandler(string EventName, Dictionary<string, object> args)
Parameters
Type | Name | Description |
---|---|---|
System.String | EventName | |
System.Collections.Generic.Dictionary<System.String, System.Object> | args |
Overrides
Render()
Render the Accordion instance
Declaration
public string Render()
Returns
Type | Description |
---|---|
System.String |
Render(HtmlTextWriter)
Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Web.UI.HtmlTextWriter | writer |
Overrides
UpdateServerModel(Dictionary<String, Object>)
Maintaining viewstate model values on post back
Declaration
public override void UpdateServerModel(Dictionary<string, object> ClientModel)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.Object> | ClientModel |
Overrides
Events
AccordionPaneClick
Occurs when accordion pane click.
Declaration
public event Accordion.AccordionEventHandler AccordionPaneClick
Event Type
Type | Description |
---|---|
Accordion.AccordionEventHandler |