Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33705

DataGridDragProxy created item renderer without a reference to the column

    XMLWordPrintableJSON

Details

    Description

      spark.components.gridClasses.DataGridDragProxy:createChildren()

      This method instantiates IGridItemRenderer instances for visual feedback on dragging from a spark datagrid.

      IGridItemRenderer has a property column:GridColumn which is not set and will be null for any item renderer created through this mechanism.

      Since we have a reference to the column at instantiation time I don't see any problem with assigning it to the instantiated item renderer.

      Attached is an example of the issue, and a patch which will assign the column to the item renderer instance

      Attachments

        1. DataGridProxyNullPointer.mxml
          2 kB
          Marcus Wilkinson
        2. FixNullColumnPatch-ApplyToSpark-DataGridDragProxy.patch
          0.4 kB
          Marcus Wilkinson

        Issue Links

          Activity

            People

              jmclean Justin Mclean
              marcus_sparkus Marcus Wilkinson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: