Skip navigation
Currently Being Moderated

An unanswerable datagrid question?

Jun 15, 2010 7:52 AM

Hi

 

I've googled my question, found that LOADS of other people as looking for the same answer... yet none of them are ever answer, but I'll remain hopefull...

Flash CS4, using actionscript 3... how can you populate a datagrid's cell with a combobox?

Can anyone PLEAAAAAASE supply me with the actionscrip for this seemingly impossible task???

 

Thank you in advance!!!

 
Replies
  • Currently Being Moderated
    Jul 1, 2010 1:51 AM   in reply to SaneDevil

    There might not be a direct answer to what you are trying to accomplish, but there is a method to do it.

     

    I am assuming that you want to populate a datagrid with values present in a combo box.

     

    They key to doing this is to store the value of the combo box in a way that can be understood by your datagrid.

    Both datagrid and comboboxes can read from and store values into the "DataProvider" structure.

    So I think you can have a simple for loop to extract the values from a combo box into a data provider and then populate the datagrid with the same.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 1, 2010 3:19 AM   in reply to SaneDevil

    Hey SaneDevil,

     

    I can understand what you are trying to create. Something like a report generating tool or a data gathering tool.

    No there, is no way where the values from a CB can be directly populated into a DG atleast in Flash CS4.

     

    If you are familiar with Flex I think you might have predefined templates for what you are trying to achieve.

    Flex is used to create more of such data gathering and data related UI. Flash is used more for animation and other purposes.

    So try and have a look into one of the flex templates, for all you might know there might already be a template for what you need.

     

    Hope this post helps you in creating what you need

    Cheers!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points