Re: [flexcomponents] Struggling with itemRenderer in DataGrid

2007-03-02 Thread Steve Gustafson
:* 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

Re: [flexcomponents] Struggling with itemRenderer in DataGrid

2007-03-02 Thread jwopitz
: [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

Re: [flexcomponents] Struggling with itemRenderer in DataGrid

2007-03-02 Thread jwopitz
:* 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

RE: [flexcomponents] Struggling with itemRenderer in DataGrid

2007-03-02 Thread Alex Harui
. 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

RE: [flexcomponents] Struggling with itemRenderer in DataGrid

2007-03-01 Thread Alex Harui
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

Re: [flexcomponents] Struggling with itemRenderer in DataGrid

2007-03-01 Thread Steve Gustafson
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

Re: [flexcomponents] Struggling with itemRenderer in DataGrid

2007-03-01 Thread jwopitz
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

RE: [flexcomponents] Struggling with itemRenderer in DataGrid

2007-03-01 Thread Alex Harui
. 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

Re: [flexcomponents] Struggling with itemRenderer in DataGrid

2007-03-01 Thread Steve Gustafson
: [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