Home Forums FlexGanttFX Drag and Drop in the TreeTableView

Viewing 5 reply threads
  • Author
    Posts
    • Daniel
      Participant
      Post count: 4
      #13878 |

      Hi,

      What is the best way to implement a drag&Drop function in the treetableview(ttv)? If the user moves an item in the TTV the complete row incl. the bar(s) in the ganttchart should also move.

      Thank you.

    • Dirk Lemmermann
      Keymaster
      Post count: 78
      #13879 |

      This actually is not a FlexGanttFX-specific question. If you find a tip on how to do this in the standard tree table view then you should be able to apply it to the Gantt Chart as well.

    • Dirk Lemmermann
      Keymaster
      Post count: 78
    • Daniel
      Participant
      Post count: 4
      #13881 |

      I’ve tried for test purpose but it doesn’t work.

      gantt.getTreeTable().setRowFactory(tv -> {
      TreeTableRow<ModelObject<?,?,?>> row = new TreeTableRow<>();
      System.err.println((new java.util.Date()).toString() );

      return row ;
      });

      so i assume that something FlexganttFX releated.

    • Dirk Lemmermann
      Keymaster
      Post count: 78
      #13882 |

      That’s right. I am actually setting my own row factory that returns GanttChartTreeTableRow. Well, looks like I have to put something into FlexGanttFX myself. Was thinking about that for quite some time anyways. It will be included in the next release. I am currently working on it, so should not be too long.

    • Dirk Lemmermann
      Keymaster
      Post count: 78
      #13883 |

      But only in the Java 11 version.

Viewing 5 reply threads
  • You must be logged in to reply to this topic.