0 Replies Latest reply on Jul 3, 2008 7:34 AM by arif_bd

    Drag-n-Drop problem in DataGrid with custom ItemRenderer


      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: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" />

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

      ~ Arif