If the renderer is causing problem, you should probably show the
renderer code.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Muhammad Ariful Islam
Sent: Thursday, July 03, 2008 1:37 AM
To: [email protected]
Subject: [flexcoders] Drag-n-Drop problem in DataGrid with custom
ItemRenderer ...

 

Hi,

I am trying to use a DataGrid to set the ordering of a group of images. 
I want to do this with a DataGrid which will show me some properties of
the images in different columns including a thumbnail of the image. The
problem is when I use any custom renderer for any column, the draging is
not working. It works fine when I don't use any ItemRenderer.

My code looks something like this:

<mx:DataGrid dragEnabled="true"
dropEnabled="true" dragMoveEnabled="true">

<mx:columns>
<mx:DataGridColumn headerText="Thumb"
itemRenderer="component.GridImageRenderer"
/>

<mx:DataGridColumn headerText="Current name"
width="100"
itemRenderer="component.NameRenderer"/>

<mx:DataGridColumn headerText="New name"
width="150"
dataField="nameNew"/>

</mx:columns>
</mx:DataGrid>

Can anyone please give me any clue how to fix this?

Regards,
~ Arif

 

Reply via email to