Created By Dosvak LLC (WWW.DOSVAK.COM)

0 votes
3 views
in Coach Views by (10.3k points)

1 Answer

0 votes
by (10.3k points)
selected by
 
Best answer

Collapsible Panels can be improvised with a composite control where in on expanding a certain section the remaining sections can be closed except the current one which creates a accordion effect. Following code does the above

var myindex = me.ui.getIndex();

//alert(myindex);

for (var i=0; i < ${Accordion_Data1}.getData().items.length; i++){

if (i != myindex){

var str1 = "../Accordion_Collapsible_Panel1"+ "[" + i + "]";

if(me.ui.get(str1).isExpanded()){

me.ui.get(str1).collapse();

}

}

}

Related questions

0 votes
0 answers 13 views
0 votes
0 answers 28 views
0 votes
0 answers 21 views
0 votes
1 answer 206 views
...