I'd suggest not using the built-in editable functionality and do the
dataProvider update in the renderer itself.  If you use the collection API
or call itemUpdated(), the collection should dispatch all the necessary
events to sync up the UI.

 

Alex Harui has a checkbox renderer example on his blog, yo might look to see
haw he does it.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of Greg Lafrance
Sent: Saturday, September 26, 2009 9:24 AM
To: [email protected]
Subject: [flexcoders] Re: DataGrid CheckBox itemRenderer/editor not updating
dataProvider properly

 

  

Its too early in the morning. I mean it has a CheckBox, not a ComboBox.

--- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
"Greg Lafrance" <glafra...@...> wrote:
>
> Actually I mean listening on the ADG itemEditEnd event does not work.
> 
> --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
"Greg Lafrance" <glafrance@> wrote:
> >
> > I have a DataGrid with one column using a ComboBox as the itemRenderer.
The column is editable but if you trace the dataProvider, the changes lag
behind by one. So uncheck two row's ComboBox and the dataProvider only shows
one row's data updated.
> > 
> > Listening on the ADG editend or CheckBox change functions doesn't work
as it seems the dataprovider gets updated too late.
> > 
> > Any ideas?
> >
>



Reply via email to