Edit this page

Working with RadCollapsiblePanel

This article demonstrates how RadCollapsiblePanel can be manipulated via its API.

Important Properties

ExpandDirection - Indicates the direction of the expand animation. The collapse animation is in the opposite direction.

RadDirection.Down

this.radCollapsiblePanel1.ExpandDirection = RadDirection.Down;

Me.RadCollapsiblePanel1.ExpandDirection = RadDirection.Down

panels-and-labels-radcollapsiblepanel-methods-and-properties 001

RadDirection.Left

this.radCollapsiblePanel1.ExpandDirection = RadDirection.Left;

Me.RadCollapsiblePanel1.ExpandDirection = RadDirection.Left

panels-and-labels-radcollapsiblepanel-methods-and-properties 002

RadDirection.Right

this.radCollapsiblePanel1.ExpandDirection = RadDirection.Right;

Me.RadCollapsiblePanel1.ExpandDirection = RadDirection.Right

panels-and-labels-radcollapsiblepanel-methods-and-properties 003

RadDirection.Up

this.radCollapsiblePanel1.ExpandDirection = RadDirection.Up;

Me.RadCollapsiblePanel1.ExpandDirection = RadDirection.Up

panels-and-labels-radcollapsiblepanel-methods-and-properties 004

EnableAnimation - Indicates whether to use animation to expand or collapse the control.

this.radCollapsiblePanel1.EnableAnimation = false;

Me.RadCollapsiblePanel1.EnableAnimation = False

ContentSizingMode - Indicates whether the controls container will resize to fit the width or the height of its content.

this.radCollapsiblePanel1.ContentSizingMode = CollapsiblePanelContentSizingMode.FitToContentWidth;

Me.RadCollapsiblePanel1.ContentSizingMode = CollapsiblePanelContentSizingMode.FitToContentWidth

panels-and-labels-radcollapsiblepanel-methods-and-properties 005

this.radCollapsiblePanel1.ContentSizingMode = CollapsiblePanelContentSizingMode.FitToContentHeight;

Me.RadCollapsiblePanel1.ContentSizingMode = CollapsiblePanelContentSizingMode.FitToContentHeight

panels-and-labels-radcollapsiblepanel-methods-and-properties 006

this.radCollapsiblePanel1.ContentSizingMode = CollapsiblePanelContentSizingMode.FitToContentWidth | CollapsiblePanelContentSizingMode.FitToContentHeight;

Me.RadCollapsiblePanel1.ContentSizingMode = CollapsiblePanelContentSizingMode.FitToContentWidth Or CollapsiblePanelContentSizingMode.FitToContentHeight

panels-and-labels-radcollapsiblepanel-methods-and-properties 007

ShowHeaderLine - If true, a line will be displayed in the header which will fill the available space, otherwise it will not be displayed.

panels-and-labels-radcollapsiblepanel-methods-and-properties 008

HorizontalHeaderAlignment -Determines how the elements in the header to be aligned when it is in a horizontal position:

  • Center

  • Right

  • Left

  • Stretch

VerticalHeaderAlignment - Determines how the elements in the header to be aligned when it is in a vertical position:

  • Center

  • Bottom

  • Top

  • Stretch

AnimationType - Determines the type of the animation when expanding or collapsing the control:

  • Reveal

panels-and-labels-collapsible-panel-methods-and-properties 010

  • Slide

panels-and-labels-collapsible-panel-methods-and-properties 011

See Also

Was this article helpful? Yes No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy