Didn't know there was data property available for checkbox. I couldn't see that anywhere. One more thing. Please see the code Below:
<mx:Repeater id="params" dataProvider="{ModelLocator.attributes}">
<mx:HBox width="100%" marginLeft="10" backgroundColor="#EEEEEE">
<mx:CheckBox
id="parentComp"
label="{params.currentItem.label}"
data="" />
</mx:HBox>
<mx:Repeater id="valuesRows" dataProvider="{params.currentItem.data}">
<mx:HBox width="100%" marginLeft="25">
<mx:Repeater id="values" dataProvider="{valuesRows.currentItem}">
<mx:CheckBox label="{values.currentItem.label}" data="" />
</mx:Repeater>
</mx:HBox>
</mx:Repeater>
</mx:Repeater>
The second repeater is looping over the number of rows and the third one lays out checkboxes horizontally for each row. I need to be able to figure out a way to have checkboxes in rows to know their corresponding parent CheckBoxes. For eg, when a child CheckBox is clicked it should select/unselect its corresponding "parentComp".
Thanks
Agha Mehdi
IDT - eBusiness Program Manager
-----Original Message-----
From: João Fernandes [mailto:flexcoders@yahoogroups.com] On Behalf Of João Fernandes
Sent: Tuesday, November 22, 2005 12:11 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Checkbox value
Agha,
looking for something like this?
<mx:Checkbox label="{myobject.mylabelfield}" data="">
or is your object {labelfield: somevalue, data: {some_object} }?
<mx:Checkbox label="{myobject.mylabelfield}" data="" myobject.data }"/>
João Fernandes
Secção de Desenvolvimento
Departamento de Informática
-----Original Message-----
From: flexcoders@yahoogroups.com on behalf of Mehdi, Agha
Sent: Tue 22-Nov-05 6:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox value
How can I make it so that my CheckBox also holds data property of an object
and not just show the label. Basically, I have an object with data and label
properties and I want the CheckBox to hold the data and display the label.
If CheckBox can't do that then I'm gonna have to create a custom component.
Just wanted to see if it was something CheckBox could do.
Thanks
Agha Mehdi
IDT - eBusiness Program Manager
Work: 408.284.8239
Cell : 209.275.0482
Fax : 408.284.2766
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.