New to Telerik UI for WinFormsStart a free 30-day trial

Working with RadCollapsiblePanel

Updated over 6 months ago

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

C#
this.radCollapsiblePanel1.ExpandDirection = RadDirection.Down;

WinForms RadCollapsiblePanel RadDirection Down

RadDirection.Left

C#
this.radCollapsiblePanel1.ExpandDirection = RadDirection.Left;

WinForms RadCollapsiblePanel RadDirection Left

RadDirection.Right

C#
this.radCollapsiblePanel1.ExpandDirection = RadDirection.Right;

WinForms RadCollapsiblePanel RadDirection Right

RadDirection.Up

C#
this.radCollapsiblePanel1.ExpandDirection = RadDirection.Up;

WinForms RadCollapsiblePanel RadDirection Up

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

C#
this.radCollapsiblePanel1.EnableAnimation = false;

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

C#
this.radCollapsiblePanel1.ContentSizingMode = CollapsiblePanelContentSizingMode.FitToContentWidth;

WinForms RadCollapsiblePanel FitToContentWidth

C#
this.radCollapsiblePanel1.ContentSizingMode = CollapsiblePanelContentSizingMode.FitToContentHeight;

WinForms RadCollapsiblePanel FitToContentHeight

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

WinForms RadCollapsiblePanel FitToContentWidth or FitToContentHeight

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

WinForms RadCollapsiblePanel ShowHeaderLine

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

    WinForms RadCollapsiblePanel Reveal

  • Slide

    WinForms RadCollapsiblePanel Slide

See Also

In this article
Important PropertiesSee Also
Not finding the help you need?
Contact Support