Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how to put datagrid in accordion component

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML 5 or Flash 7 489
FLV versus SWF 11 283
need a player that can play .d and .i DVR files 9 1,558
How to add jQuery and JavaScript(s) into Dreamweaver? 1 281
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. …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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.

839 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