Home Forums FlexGanttFX cancel OnDragDropped

Viewing 1 reply thread
  • Author
    • Martin
      Post count: 10
      #12870 |

      Is it possible to cancel drop action of an activity when doing drag and drop?

      I did try the following code, with no success.

      graphics.setOnDragDropped(event ->




    • Dirk Lemmermann
      Post count: 69
      #12874 |

      The drag and drop is completely encapsulated within FlexGanttFX, so you can not work with the DnD API. What you need to use are the callbacks on GraphicsBase. In this case the “row drag and drop callback”.

       * Specifies a callback that will be invoked when the user drags an activity
       * over a row of the given type. The callback implementation then determines
       * if a drop would be accepted in the given row.
      public final void setRowDragAndDropCallback(Class rowType, Callback callback);
Viewing 1 reply thread
  • You must be logged in to reply to this topic.