How to Use CollapsiblePanel

Source: Internet
Author: User

CollapsiblePanel is a customizable panel control with the following attributes: TargetControlID
ID of the Panel to be folded

CollapsedSize
Size after Panel folding

ExpandedSize
Late size after Panel stretch

Collapsed
Whether the Panel is collapsed when the page is loaded by default

ExpandControlID
Controls that stimulate the stretching effect, mainly through the Click Event of the control to achieve the stretching Effect

CollapseControlID
Controls that stimulate the folding effect mainly implement the folding effect through the Click Event of the control.

AutoCollapse
Whether to collapse automatically when the Panel loses focus

AutoExpand
Whether to automatically stretch when the Panel loses focus

ScrollContents
Whether to display the scroll bar in the Panel

TextLableID
Target control that displays the folding status

CollapsedText
Information displayed by the target control during the folding status

ExpandedText
Display Information of the target control during Stretching

ImageControlID
The widget ID of the image is displayed when the folding and stretching modes are image modes.

ExpandedImage
Image path used for stretching

CollapsedImage
Image path used for folding

ExpandDirection
Panel stretch direction: horizontal and vertical
 


Demo:

 

<AjaxToolkit: CollapsiblePanelExtender ID = "cpe" runat = "Server"
TargetControlID = "Panel1"
CollapsedSize = "0"
ExpandedSize = "300"
Collapsed = "True"
ExpandControlID = "LinkButton1"
CollapseControlID = "LinkButton1"
AutoCollapse = "False"
AutoExpand = "False"
ScrollContents = "True"
TextLabelID = "Label1"
CollapsedText = "Show Details ..."
ExpandedText = "Hide Details"
ImageControlID = "Image1"
ExpandedImage = "~ /Images/collapse.jpg"
CollapsedImage = "~ /Images/expand.jpg"
ExpandDirection = "Vertical"/>

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.