Source Code Create a value with Confidence...

Prgramming Language : AJAX TOOLKIT

AJAX - Collapsible-Panel

Example


TargetControlID - the Panel to operate expand and collapse.
CollapsedSize - The size of the target, in pixels, when it is in the collapsed state.
ExpandedSize - The size of the target, in pixels, when it is in the opened state.
Collapsed - Specifies that the object should initially be collapsed or expanded. Set this to match your initial size. In this case, we initially set the panel to a height of 0 to match the CollapsedSize property, so when the page first renders, we don't see the panel expanded.
AutoCollapse - True to automatically collapse when the mouse is moved off the panel.
AutoExpand - True to automatically expand when the mouse is moved over the panel.
ScrollContents - True to add a scrollbar if the contents are larger than the panel itself. False to just clip the contents.
ExpandControlID/CollapseControlID - The controls that will expand or collapse the panel on a click, respectively. If these values are the same, the panel will automatically toggle its state on each click.
TextLabelID - The ID of a label control where the "status text" for the panel will be placed. The panel will replace the internal HTML of this control (e.g. any HTML between the tags).
CollapsedText - The text to show in the control specified by TextLabelID when the panel is collapsed. This text is also used as the alternate text of the image if ImageControlID is set.
ExpandedText - The text to show in the control specified by TextLabelID when the panel is opened. This text is also used as the alternate text of the image if ImageControlID is set.
ImageControlID - ID of an Image control where an icon indicating the collapsed status of the panel will be placed. The extender will replace the source of this Image with the CollapsedImage and ExpandedImage urls as appropriate. If the ExpandedText or CollapsedText properties are set, they are used as the alternate text for the image.
CollapsedImage The path to an image used by ImageControlID when the panel is collapsed
ExpandedImage The path to an image used by ImageControlID when the panel is expanded
ExpandDirection - can be "Vertical" or "Horizontal" to determine whether the panel expands top-to-bottom or left-to-right.

 
ASP.NET AJAX is a free framework for quickly creating a new generation of more efficient, more interactive and highly-personalized Web experiences that work across all the most popular browsers.
ASP.NET AJAX is a free framework for quickly creating a new generation of more efficient, more interactive and highly-personalized Web experiences that work across all the most popular browsers.
ASP.NET AJAX is a free framework for quickly creating a new generation of more efficient, more interactive and highly-personalized Web experiences that work across all the most popular browsers.
function doOpen() { $find("cpe")._doOpen(); } function doClose() { $find("cpe")._doClose(); } function doToggle() { var cpe = $find("cpe"); //cpe._toggle(); if (cpe.get_Collapsed()) { cpe._doOpen(); } else { cpe._doClose(); } }



Learn more AJAX - ToolKit Functions


* Introduction
* Accordion
* Drag Panel
* Animation
* Auto Complete
* Calendar

* TextBox Watermark
* Cascading DropDown
* Collapsible Panel
* Confirm Button
* Dynamic Populate
* Filtered TextBox

* Drop Down
* Drop Shadow
* Hover Menu
* List Search
* Masked Edit
* Modal Popup

* Tabs
* NoBot
* Numeric UpDown
* Paging Bulleted List
* Password Strength
* Popup Control

* Rating
* ReorderList
* Resizable Control
* Rounded Corners
* Slider
* Slide Show

* Animation
* Toggle Button
* UpdatePanel-Animation
* Validator Callout
* Always Visible Control
* Mutually Exclusive CheckBox