• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 448
  • Last Modified:

how to put datagrid in accordion component

How can I put a datagrid component in an accordion component?  An example would be helpful :D
0
gmailrules
Asked:
gmailrules
  • 2
1 Solution
 
hsmtpCommented:
Put Accordion and Datagrid into library.

Put this AS into Frame:

var howManyAccordionChilds = 5;

DataProvider = new Array();

DataProvider.push({name: "Bob", gender: "Male"});

_root.attachMovie("Accordion", "myAccordion", 1234);
myAccordion.setSize(400,300);

for (i=1; i<=howManyAccordionChilds; i++) {
      myAccordion.createChild("View", "accord"+i, { label: "accordion number "+i });
      
      var o = myAccordion["accord"+i].createChild("DataGrid", "DataGrid"+i);

      o.setSize(myAccordion._width-2, myAccordion._height-(howManyAccordionChilds*20)-5);
      
      o.dataProvider = DataProvider;
}

Good luck!

0
 
gmailrulesAuthor Commented:
Thank You :D
0
 
gmailrulesAuthor Commented:
0
 
CerfCommented:
gmailrules, your nick rules :-) oh, and also gmail! I love it!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now