:* Thursday, March 01, 2007 3:09 PM
*To:* flexcomponents@yahoogroups.com
*Subject:* Re: [flexcomponents] Struggling with itemRenderer in DataGrid
Perhaps I am not being clear. I know I can set the dataProvider within
the component. What I need to know is how I can either change the
dataProvider when
: [flexcomponents] Struggling with itemRenderer in DataGrid
Perhaps I am not being clear. I know I can set the dataProvider within
the component. What I need to know is how I can either change the
dataProvider when the itemRenderer is called.
I want to use this itemRenderer in multiple grids. Each
:* flexcomponents@yahoogroups.com [mailto:
[EMAIL PROTECTED] * On Behalf Of *Steve Gustafson
*Sent:* Thursday, March 01, 2007 3:09 PM
*To:* flexcomponents@yahoogroups.com
*Subject:* Re: [flexcomponents] Struggling with itemRenderer in
DataGrid
Perhaps I am not being clear. I know I can set
.
From: flexcomponents@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Gustafson
Sent: Friday, March 02, 2007 8:36 AM
To: flexcomponents@yahoogroups.com
Subject: Re: [flexcomponents] Struggling with itemRenderer in DataGrid
That is exactly the solution I hit upon this morning
Your itemRenderer is not a ComboBox, it is a VBox containing a ComboBox.
The DataGrid sets the .data property on the VBox and you haven't written
the code to pass it on down to the ComboBox.
You can either write that code, or use ComboBox as the top-level tag so
you are really using a subclass
OK, now I've gotten rid of the VBox, but still do not see how I can set a
different dataProvider to the comboBox, or dynamically set the
selectedIndex.
Again any help is greatly appreciated.
Steve
On 3/1/07, Alex Harui [EMAIL PROTECTED] wrote:
Your itemRenderer is not a ComboBox, it is a
First off, reinstate the VBox. The override the setter data
(value:Object). There you can either set the cb's dataProvider like cb.dp =
data.someObject
or if you are doing it in MXML, you can bind the dataprovider of the CB to
some expected property of the data property of the VBox.
Doing it
.
From: flexcomponents@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Gustafson
Sent: Thursday, March 01, 2007 3:09 PM
To: flexcomponents@yahoogroups.com
Subject: Re: [flexcomponents] Struggling with itemRenderer in DataGrid
Perhaps I am not being clear. I know I can set
: [flexcomponents] Struggling with itemRenderer in DataGrid
First off, reinstate the VBox. The override the setter data
(value:Object). There you can either set the cb's dataProvider like cb.dp=
data.someObject
or if you are doing it in MXML, you can bind the dataprovider of the CB to
some