Tracy,

 

Thanks the setItemAt works nicely.

 

The refresh is available but I was looking in the wrong spot. It does
however cause the grid to reposition, so its probably doing a full redraw.

 

Regards

Dale Fraser

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, 16 January 2008 11:04 AM
To: [email protected]
Subject: RE: [flexcoders] DataGrid Refresh

 

Dale, use the ArrayCollection API to update the item (probably setItemAt()).
Simply assigning a value to selectedItem doesn't displatch the events
necessary to make the DG UI update.

 

refresh() *is* a method on the AC.  Calling that should also work (but it
may cause a full redraw, I don't recall.)  Why do you say it is not
available?  It is listed in the docs.

 

Tracy

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Dale Fraser
Sent: Tuesday, January 15, 2008 5:43 PM
To: [email protected]
Subject: RE: [flexcoders] DataGrid Refresh

 

validateNow does not work

 

refresh does not seem to be available on my dataProvider which is a variable
array collection.

 

If I redo the binding

 

gridName.dataProvider = variableName;

 

This works, but it redisplays the whole grid and looses your position within
the data.

 

Regards

Dale Fraser

 

http://learncf.com

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Max Frigge
Sent: Tuesday, 15 January 2008 6:24 PM
To: [email protected]
Subject: Re: [flexcoders] DataGrid Refresh

 

Hey I am not quite sure about this, but 
it should be either:

yourDataProvider.refresh(); 

or

you could try dataGrid.validateNow();


HTH (and I am not telling any crap ;)

----- Original Message ----
From: Dale Fraser <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, January 15, 2008 4:16:07 PM
Subject: [flexcoders] DataGrid Refresh

I have a datagrid and am programmatically updating some entries in the
selected row.

 

I have tried both

 

selectedItem. columnName = "blah"

 

and changing the bound dataProvider.

 

Both work, but the grid does not refresh. If I do a column sort it refreshes
and I see the changed data.

 

Regards

Dale Fraser

 

http://learncf. com

 

 

 

  _____  

Looking for last minute shopping deals? Find
<http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearch/ca
tegory.php?category=shopping>  them fast with Yahoo! Search.

 

Reply via email to