2 Replies Latest reply on Oct 29, 2007 6:40 AM by delotero

    AdvancedDataGrid Column Drag-and-Drop with ItemRenderer

    delotero
      I'm trying to have a tabbed list of TileLists, each with an ItemRenderer to show pictures & data related to a component. I want to be able to drag each component into a Grid (i.e. Data or AdvancedData) to create a product from a combination of components.

      PROBLEM: Every time I drop a component into AdvancedDataGrid, ALL columns reflect changes (both columns sharing the same item renderer look the same, and columns that do not have item renderer show data in column).

      Any examples???
        • 1. Re: AdvancedDataGrid Column Drag-and-Drop with ItemRenderer
          sameerb Level 1
          Can you post your sample so that we can analyze where exactly the problem is?

          - Sameer
          • 2. Re: AdvancedDataGrid Column Drag-and-Drop with ItemRenderer
            delotero Level 1
            Sameerb,

            Below is the portion of the .mxml for the DataGrid/AdvancedDataGrid (I've tried both).

            The net effect is that every time I drag the itemRenderer from a TileList into the appropriate cell in the DataGrid, ALL columns seem to be updated. How can I limit drop operation to only affect the specific cell of the drop operation.

            Thanks,

            Tom D.
            ======================================
            <mx:AdvancedDataGrid
            height="200" width="100%"
            rowHeight="250" columnWidth="250" enabled="true" editable="true"
            dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" draggableColumns="true">
            <mx:columns>
            <mx:AdvancedDataGridColumn id="Product">

            </mx:AdvancedDataGridColumn>

            <mx:AdvancedDataGridColumn
            id="Sketch"
            headerText="Sketch"
            itemRenderer="Thumbnail" editable="true" itemEditor="Thumbnail">

            </mx:AdvancedDataGridColumn>

            <mx:AdvancedDataGridColumn
            id="RMFabricYarn"
            headerText="Fabric/Yarn"
            itemRenderer="Thumbnail" editable="true" itemEditor="Thumbnail">

            </mx:AdvancedDataGridColumn>

            <mx:AdvancedDataGridColumn
            id="RMTrim"
            headerText="Trim"
            itemRenderer="Thumbnail" editable="true" itemEditor="Thumbnail">

            </mx:AdvancedDataGridColumn>

            <mx:AdvancedDataGridColumn
            id="Color"
            headerText="Color"
            itemRenderer="ThumbnailColor" editable="true" itemEditor="ThumbnailColor">
            </mx:AdvancedDataGridColumn>

            </mx:columns>

            </mx:AdvancedDataGrid>