Solved

how to put datagrid in accordion component

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

707 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

21 Experts available now in Live!

Get 1:1 Help Now