Login Register

accordioncontainer

All collapsed state in an Accordion Container

Hi Guys,

By default, all other panes will be in collapsed state except one in an Accordion Container when that loads for the first time. I've a requirement where I need to have all pane collapsed when the container loads for the first time. I tried with the basic "selected" property but thats not really doing the job. Does anyone know what we can do to make all panes collapsed when the container loads for the first time?

Any help will be greatly appreciated.

Thanks folks!

How can the content define height of AccordionPane?

I would like the content displayed in the AccordionPane to define the height of the AccordionContainer. If each pane has content of varying height this great piece of code becomes unusable IMO. Has anyone figured out a way to handle this such that we don't have to define some static height?

AccordionContainer/AccordionPane has default height 0. Why and how to expand it to height of content?

Hi folks,
I am trying AccordionContainer/Panes but I don't know how to set height to height of first pane's height. My AccordionPanes is collapsed and no content is shown although I click to "+" icon on the right.

I don't want to write any fixed height directly to

with AccordionContainer. I want to let Dijit to expand total height dynamically according to content.... I.e. I don't use want this:

problem AccordionContainer misbehaving inside TabContainer

Hi guys,
I'm using Dojo 1.2 and I'm running into the following problem...
I've created a templated custom widget which contains an AccordionContainer. I'm trying to add this custom widget (programmatically) as a child of an existing TabContainer. However when i do this, the AccordionContainer doesn't work properly i.e. you cannot see the contents in the AccordionPane's

Here is some simple code as an example. Any thoughts or alternate solutions?
All in all i need to programatically add the widget containing the AccordionContainer to the TabContainer.
thanks in advance

Is it possible to have all the accordion panes closed ?

Is it possible to have all the accordion panes closed (or contracted) inside an Accordion container.

Thanks in advance,
Amit S.

Problem loading a form into an accordion pane...

I having a problem loading a form into an accordion pane. The form is defined in an external html document that I am loading via the href attribute on the accordion pane. I can open the panel1.html document directly and no errors are reported by by firebug. However, when I embed the form in an accordion pane, I get the following error from firebug and the form doesn't render correctly. I've noticed that if I include the dojo.require()'s that are declared in panel1.html directly in accordion.html then things seem go better.

Trouble with dynamic creation of AccordionPanes

I have some script that programatically creates AccordionPanes based on information it finds via a datastore. I inserted in some alerts such that I could debug the code. It works with the alert in place ... however when I remove the alert statement, only one of the AccordionPanes (the selected one) is visible. I have looked at the generated page source, and the other AccordionPanes are being generated .. they just are not visible.

Here is my script:

dojo.addOnLoad(function() {
// Get the datasource description for the accordion panes

AccordionContainer layout update not calling children layout

Why doesn't the children resize when I do the following? The main accordion container adapts but the accordion panes stay the exact same size.

This is the code after I set new content into a neighboring contentpane setting the heigh of the parent div.

var accordion = dijit.byId('my_accordion_div_id');
if(accordion){
	accordion.layout();
}

LayoutWidget(s) inside of accordianPane fix

While working with Layout Widgets i noticed that if there are layout items within an accordionPane they do not get resized or have their layout correctly rendered. Looking into the source code it appears that it is a todo item to have the accordionPane call the resize function of its nested containers. Below are the changes i made to have the child layouts resize.

Be warned, I have not fully tested the solution on all cases!

Text box in Accordian pane

When i place a Text box in an accordion container with some text in it and try to move the cursor in the textbox using Left and Right arrow keys of the keyboard, the accordion pane animation happens rather than the cursor to move inside the text box.

Is this the normal behavior of this widget? If not how to avoid this?

Syndicate content