Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 02:23
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  V2 Components (Flash MX 2004 - Flash 8) (Moderators: vesa kortelainen, Ronald Wernecke, Jorge Solis, ..:: Mazhar Hasan ::.., papachan)
| | |-+  DataGrid + ComboBox
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: DataGrid + ComboBox  (Read 2711 times)
Jason M. Batchelor
Server what's that
*
Posts: 2


Seeker of the AntiBanal!


View Profile WWW Email
« on: 05/05/04, 15:57 »

I've been working from the source files that Jorge posted for the CellRenderer API tutorial. His example works perfectly with the small set of data that he's provided as an example, but when I try to wire up something similar with a data set brought in from XML, I see strange behavior.

My DataGrid needs to contain the UserID (a text field... no problem), and an Access Level (which is where I need the combo-box). The field is being populated correctly, BUT, the text does not display in the comboBox!

The drop-down list that opens when you click on the ComboBox displays the list as it is supposed to, but even selecting something from that list (I've tested this with trace() calls to check before and after states) makes no difference. I have a feeling I have something either missing, or something is conflicting (fonts? layers? what?).

Any thoughts? I can post some code, if necessary, but wanted to see if anyone had run into this and had a quick fix before I went that far.

Jason M. Batchelor
Logged
Jason M. Batchelor
Server what's that
*
Posts: 2


Seeker of the AntiBanal!


View Profile WWW Email
« Reply #1 on: 05/05/04, 16:18 »

(Yes, I realize it's somewhat sad that I'm responding to my own post, but hey, I found something, so here goes...)

Okay... oddity continues:

1) I split my DataGrid formatting/initialization code off into a separate function, then had my code call that function before I did anything else (incl. the loading of the XML dataset that would populate the DG).
2) I then called to get my XML dataset.
3) ComboBoxes all showed their selected values as desired.

Any thoughts on this? Is this an issue in the way the components load in? If so, how does one prioritize one component's load before another?

I have Flash MX 2004, this movie (and the hopefull output thereof) is set to Flash 6, AS 2.0.

Thanks,

Jason M. Batchelor
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #2 on: 05/05/04, 16:26 »

XML is heavy food for Flash: should loaded, instantiated, parsed. So makes sense that you addItems to your datagrid after you load and parse the XML file.

Jorge
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!