There is a bug in the DataGrid where if the dataProvider element is
initially zero length, and you subsequently add a string to it, the Data
does not display.  Re-assign the dataProvider to the grid and the data
will show up.  

If you put data into the DG, then change it, does it display then?

By the way, how are you updating the dataProvider?  Do not use the low
level array methods like push, or myarray[0]="whatever".  These do not
cause the dataProvider to emit the model changed event.  Instead use the
dataProvider API, like editField().

Tracy

-----Original Message-----
From: wcucsd [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 18, 2005 6:09 PM
To: [email protected]
Subject: [flexcoders] datagrid refresh problem




I have two panels side by side, one of which contains an mxml 
component (a set of edit boxes).  The left panel contains a 
datagrid.  Both the data grid and edit boxes share a common data 
object (an actionscript object).  I make a change to the object via 
the edit boxes and the datagrid does not show the updated values.  
However, when I move the mouse over the row that contains the data I 
just modified, the data changes!?  Any ideas what is happening 
here?  How can I make the data change in the datagrid immediately 
without having to mouse over it?  I've tried calling both draw() and 
invalidate() on the grid and those don't work.

Thanks,
-Will






 
Yahoo! Groups Links



 







 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to