ComponentOne Accordion for ASP.NET AJAX: Accordion for ASP.NET AJAX Task-Based Help > Changing the C1Accordion Expanding Direction

Changing the C1Accordion Expanding Direction

You can easily change the direction in which the content area of a C1AccordionPane expands. Simply set the ExpandDirection property.

To change the expand direction using the C1Accordion Tasks menu:

1.   Click the C1Accordion smart tag to open the C1Accordion Tasks menu.

2.   Click the drop-down arrow next to the ExpandDirection property and select one of the options.

To change the expand direction programmatically:

Add the following code to your form:

      Visual Basic

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

C1Accordion1.ExpandDirection = C1.Web.UI.Controls.C1Expander.C1ExpandDirection.Left

End Sub

      C#

protected void Page_Load(object sender, EventArgs e)

    {

        C1Accordion1.ExpandDirection = C1.Web.UI.Controls.C1Expander.C1ExpandDirection.Left;

    }


Send comments about this topic to ComponentOne.
Copyright ©ComponentOne LLC. All rights reserved.