Solved

how to put datagrid in accordion component

Posted on 2004-09-24
4
438 Views
Last Modified: 2011-09-20
How can I put a datagrid component in an accordion component?  An example would be helpful :D
0
Comment
Question by:gmailrules
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
hsmtp earned 500 total points
ID: 12149772
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
 
LVL 1

Author Comment

by:gmailrules
ID: 12150961
Thank You :D
0
 
LVL 1

Author Comment

by:gmailrules
ID: 12151425
0
 
LVL 8

Expert Comment

by:Cerf
ID: 12151709
gmailrules, your nick rules :-) oh, and also gmail! I love it!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now