"...directly manipulate the grid's dataProvider..." This is my preferred
approach, over depending on the list components own editing process.

 

An itemRenderer gets a reference to the entire dataProvider item that
spawned it.  The framework passses it in via the set data function.  You
can use that *reference* to update any property on the item.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of biosmonkey
Sent: Monday, November 24, 2008 8:54 PM
To: [email protected]
Subject: [flexcoders] Re: ComboBox as itemRenderer/editor in Datagrid is
not updating dataProvider...

 


My understanding of this function is that it is to cause an update in
the rendering of the control attached to the data, which implies that
the dataProvider has the correct data - the control is just not
showing it.

I have the reverse problem. In my case, the renderers (the combo
boxes) are changing just fine, but the selection index in the combo is
NOT being written back to the grid's dataProvider.

Another solution would be to directly manipulate the grid's
dataProvider myself. In this case, I can hook the change event for
the itemrenderer and manually update the value. But I don't know off
hand how to access the parent dataProvider cell from within an
itemRenderer? 

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> Depending on your data, you may need to call itemUpdated so
renderers find out there's been a change to their data.
>

 

Reply via email to