Using Atlas Accordion Control to display multiple panel with one panel visible at a time

Hi

Accordion is a web control that is used to display multiple panel with one panel visible at a time. Its like have many collapsible panel where only one is visible at a time. The Accordion is a web control and has accordion pane. Each pane can have its header and content. This control also remembers its state during the post back. To fit the variety of layouts its support 3 auto size modes (None, Limit and full).

The control also support being data bound with its datasource and databind methods.

The code to use the Accordion looks like this.

<atlasToolkit:Accordion
    ID="MyAccordion"
   
runat="Server"
   
SelectedIndex="0"
   
HeaderCssClass="accordionHeader"
   
ContentCssClass="accordionContent"
   
AutoSize="None">
   
FadeTransitions="true"
   
TransitionDuration="250"
   
FramesPerSecond="40"
   
<Panes>
  
     <atlasToolkit:AccordionPane
           
HeaderCssClass="accordionHeader"
           
ContentCssClass="accordionContent">
           
<Header> . . . </Header>
           
<Content> . . . </Content>
       
</atlasToolkit:AccordionPane>       
       
<atlasToolkit:AccordionPane
           
HeaderCssClass="accordionHeader"
           
ContentCssClass="accordionContent">
           
<Header> . . . </Header>
           
<Content> . . . </Content>
       
</atlasToolkit:AccordionPane>       
   
</Panes>            
   
<HeaderTemplate>...</HeaderTemplate>           
   
<ContentTemplate>...</ContentTemplate>              
</atlasToolkit:Accordion>

Here the selected index is the index of the panel, which will be visible initially. HeaderCSS and the contentCSS are the CSS class to be applied to eth content and header panel. This is applied to all the panels as default or can be applied to each panel individually. The autosize property restricts the growth of accordion control the values can be (None, Limit and full). The fade transition property defines if there will be fade transition effect or not. TransitionDuration is the number is number id millisecond for the trasition and FramesPerSecond defines the number of frames to be used in the transition per second. The Header and content template are the template is the template to be used for displaying the header and content in the control.

Hope this helps
Thanks
Vikram


Share this post   Email it |  digg it! |  reddit! |  bookmark it!

Feedback

Posted on 12/6/2006 6:41:09 AM

Hi,
I want to use the autosize property to limit and height to 400px, however, when I do that and view my page- and click on the biggest panel-size greater than 400px, it shows like regular panel-no autosize working. When I refresh the same page, the bigger panel now looks like 400px, but there are no scroll bars and everything below that panel is not visible, like the next panel heading. Any help?

Thanks

Posted on 2/6/2007 8:24:04 AM

This accordian pane is buggy as heck when used with a objectdatasource. Plus if you put an image in the header IE7 locks up when the pane is opened or closed. Lastly when a content is opened with a lot of text the text either scrolls off the screen or gets shrunk to aoubt 200px high with a scrollbar. Looks like the atlas people need to go back to the drawing board on this one.

Posted on 2/14/2007 9:40:23

does any one have sample code for databinding the accordion control?

Posted on 6/4/2007 5:21:27 AM

hello, im having a validation issue with this control each pane has a form on each form there are text boxes some of these have required field validation connected to it, what i want is that the user never leaves a pane unless its valid. if anyone knows how to do this please reply to my mail thanks alot

Posted on 6/25/2007 5:36:51 AM

Has anyone had trouble with this control using regular server controls such as LinkButtons? It seems that when you click any type of regular server controls inside of the Accordion AJAX control, it loses its focus on the first post back, but works fine after that. It's weird.

Posted on 7/26/2007 4:39:02 AM

Does anyone know how to force the focus of the pane when the next pane in navigated? I have a form with a couple of panes, some of them containing alarge set of info (big height). If such a pane is navigated it open on the bottom/half way instead of at the top. People doing data entry first have to scroll up to fill the page.

Posted on 9/6/2007 10:12:41

hi,
I am using gridview inside accordion pane, but it is not displaying any values for gridview. If i place the same gridview i am able to get the values binded to the grid. i am doing this in VB.net, please help me in this regard.

Thanks,
Naresh

Please post your comments:

Name:  
Email (optional): Your email address will not be posted.
URL (optional):
Comments: HTML will be ignored, URLs will be converted to hyperlinks  
Enter the text you see in the box:
 
Copyright © 2006 - 2009 Vikram Lakhotia