Renderers are recycled, so using creationComplete isn’t going to work.  See the 
item renderer category on my blog for more details.  Try using dataChange event 
instead.

--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

On 6/30/10 5:30 AM, "shahjitesh" <[email protected]> wrote:






I have two datagrids with one of the column displaying a VBox using 
itemrenderer. I need to drag and drop between two datagrid. The VBox displayed 
by itemrenderer uses the parent datagrid row data information to display 
information based on that (like some static message, graph, etc).

When we move (drag and drop) the row from datagrid 1 to 2, it looses all the 
information of datagrid 1 and if I move row of datagrid 1 between rows of 
datagrid 2, then graph content are displayed as same as datagird 2.

Also, when I change any content inside VBox and then move the row from DataGrid 
to the last column of Datagrid 2, then original contents are displayed instead 
of the one I just changed.

<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"; 
implements="mx.controls.listClasses.IDropInListItemRenderer"  width="100%" 
height="350" preinitialize="preInitializeComponent()" 
creationComplete="initializeComponent()">


Any help over here would be much appreciated as I see many of them having this 
issue but no resolution is posted yet. I can also see similar issue in this 
forum too but didn't see the resolution.






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to