Solved

how to put datagrid in accordion component

Posted on 2004-09-24
4
440 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Microsoft WSUS 4 97
Flash being Disabled - help! 20 340
Failed download 57 563
Adobe indesign suite cs5.5   How to enable "indesign" capability? 2 199
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. …
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

813 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

12 Experts available now in Live!

Get 1:1 Help Now