Ajax Control Toolkit <../Default.aspx> Samples Accordion AlwaysVisibleControl Animation AutoComplete Calendar CascadingDropDown CollapsiblePanel ConfirmButton DragPanel DropDown DropShadow DynamicPopulate FilteredTextBox HoverMenu ListSearch MaskedEdit ModalPopup MutuallyExclusiveCheckBox NoBot NumericUpDown PagingBulletedList PasswordStrength PopupControl Rating ReorderList ResizableControl RoundedCorners Slider SlideShow Tabs TextBoxWatermark ToggleButton UpdatePanelAnimation ValidatorCallout Walkthroughs Release Notes Setup your environment Using a sample extender Creating a new extender Extender base class features Using Animations Animation Reference Automated Testing CascadingDropDown with a Database Other neat stuff Accordion Demonstration 1. VOIP News VOIP News VoIP-News is a leading news and information source for business buyers in the VoIP and internet telephony markets. The site provides in-depth product reviews, buyer's guides, product comparisons, news, market analysis, white papers, and other information readers need to choose and buy the latest and best VoIP hardware, software and services for their business. The site is produced by some of the most experienced internet telephony editors and analysts in the community and attracts a unique, high-quality community of VoIP buyers and vendors. In addition to news and product information, VoIP-News editors and analysts also produce webinars, newsletters and other targeted content. By acting as an independent third-party adviser, VoIP-News has become a trusted source for millions of VoIP buyers. www.voip-news.com 2. HRWorld HR World HR World HR World is a leading resource and community for HR professionals. The site provides the in-depth content that HR professionals at small, medium and large companies need to make key decisions, including choose the right HR services and software for their business. The site provides original content covering news, events and information relevant to HR professionals. In addition, HR World has community features and tools that HR professionals return to again and again such as product reviews, community-rated top stories, calculators and more. By acting as an independent third-party adviser, HR World is a trusted source for human resource managers, buyers and influencers. www.hrworld.com 3. Inside CRM Inside CRM Inside CRM Inside CRM is a leading resource and community for sales managers and professionals. The site provides the in-depth content that sales managers at small, medium and large companies need to choose the right CRM products and services for their business. By acting as an independent third-party adviser, Inside CRM is a trusted source for sales managers, buyers and influencers. In addition, Inside CRM has community features and tools that sales professionals return to again and again such as product reviews, community-rated top stories, message boards and more. www.insidecrm.com 4. Daily Wireless Daily Wireless Daily Wireless Daily Wireless is an online news and information source covering all aspects of the wireless marketplace for business. The site provides original content covering: wireless service providers, wireless security, wireless hardware and equipment, 802.11n and other wireless standards, municipal Wifi, and emerging wireless trends and technologies. The site was recently re-launched to help business buyers find the right solutions for their needs, and is rapidly building a unique, high-quality community of business buyers and vendors in the wireless industry. www.dailywireless.com Fade Transitions: AutoSize: Accordion Description The Accordion is a web control that allows you to provide multiple panes and display them one at a time. It is like having several CollapsiblePanels <../CollapsiblePanel/CollapsiblePanel.aspx> where only one can be expanded at a time. The Accordion is implemented as a web control that contains AccordionPane web controls. Each AccordionPane control has a template for its Header and its Content. We keep track of the selected pane so it stays visible across postbacks. It also supports three AutoSize modes so it can fit in a variety of layouts. * *None* - The Accordion grows/shrinks without restriction. This can cause other elements on your page to move up and down with it. * *Limit* - The Accordion never grows larger than the value specified by its Height property. This will cause the content to scroll if it is too large to be displayed. * *Fill* - The Accordion always stays the exact same size as its Height property. This will cause the content to be expanded or shrunk if it isn't the right size. The Accordion is written using an extender like most of the other extenders in the AJAX Control Toolkit. The extender expects its input in a very specific hierarchy of container elements (like divs), so the Accordion and AccordionPane web controls are used to generate the expected input for the extender. The extender can also be used on its own if you provide it appropriate input. The Accordion can also be databound. Simply specify a data source through the * DataSource* or *DataSourceID* properties and then set your data items in the HeaderTemplate and ContentTemplate properties. Accordion Properties The control above is initialized with this code. The /italic/ properties are optional: *//*
. . .
. . .
. . . */
/* /.../ /.../
* *SelectedIndex* - The AccordionPane to be initially visible * *HeaderCssClass* - Name of the CSS class to use for the headers. This can be either applied to the Accordion as a default for all AccordionPanes, or an individual AccordionPane. * *HeaderSelectedCssClass* - Name of the CSS class to use for the selected header. This can be either applied to the Accordion as a default for all AccordionPanes, or an individual AccordionPane. * *ContentCssClass* - Name of the CSS class to use for the content. This can be either applied to the Accordion as a default for all AccordionPanes, or an individual AccordionPane. * *FadeTransitions* - True to use the fading transition effect, false for standard transitions. * *TransitionDuration* - Number of milliseconds to animate the transitions * *FramesPerSecond* - Number of frames per second used in the transition animations * *AutoSize* - Restrict the growth of the Accordion. The values of the AutoSize enumeration are described above. * *RequireOpenedPane* - Prevent closing the currently opened pane when its header is clicked (which ensures one pane is always open). The default value is true. * *SuppressHeaderPostbacks* - Prevent the client-side click handlers of elements inside a header from firing (this is especially useful when you want to include hyperlinks in your headers for accessibility) * *Panes* - Collection of AccordionPane controls * *HeaderTemplate* - The Header template contains the markup that should be used for an pane's header when databinding * *ContentTemplate* - The Content template contains the markup that should be used for a pane's content when databinding * *DataSource* - The data source to use. DataBind() must be called. * *DataSourceID* - The ID of the data source to use. * *DataMember* - The member to bind to when using a DataSourceID Accordion Known Issues The AutoSize "Limit" mode works exactly the same as the "Fill" mode for Internet Explorer 6 and 7 because they do not support the max-height CSS property. If you place the Accordion inside a tag and have FadeTransitions set to true in Internet Explorer 6, it will affect the spacing between Accordion Panes. Also, when viewing the demo in Internet Explorer 6, maximizing the browser at higher resolutions like 1600 x 1200 will cause the transitions to animate slower than at lower resolutions like 1280 x 1024. Copyright © 2006-2007 Microsoft Corporation. All Rights Reserved.