[flexcoders] DataGrid in custom component not updating

2008-09-17 Thread netdeep
I have a custom component with a DataGrid in it. The dataprovider is an actionscript object (the variable name for this object is axis) with an ArrayCollection called seriesList. When I do axis.seriesList.addItem(), the DataGrid updates properly, but when I simply assign a new axis object

RE: [flexcoders] DataGrid in custom component not updating

2008-09-17 Thread Tracy Spratt
in custom component not updating I have a custom component with a DataGrid in it. The dataprovider is an actionscript object (the variable name for this object is axis) with an ArrayCollection called seriesList. When I do axis.seriesList.addItem(), the DataGrid updates properly, but when I simply

Re: [flexcoders] DataGrid in custom component not updating

2008-09-17 Thread Haykel BEN JEMIA
The problem here is that the assignment of the axis object will not copy the properties, but will make your variable reference the new object. The dataProvider of the DataGrid will still be bound to the seriesList of the old object. To make this more clear: suppose during application startup, your