Home Forums FlexGanttFX How to add a column to the treeview

  • Author
    Posts
  • Daniel
    Participant
    Post count: 2
    #13871 |

    Hello,
    How can I add a second or third column to the Treeview in the Primary Detail section?

    • This topic was modified 4 months, 4 weeks ago by  Daniel.
  • Dirk Lemmermann
    Keymaster
    Post count: 71
    #13873 |

    I am assuming you are using the DualGanttChartContainer (because you mention “primary”). In this case:

    
    GanttChart ganttChart = container.getPrimaryGanttChart();
    TreeTableView treeTableView = ganttChart.getTreeTableView();
    treeTableView.getColumns().add(new TreeTableColumn(....));
    
  • Daniel
    Participant
    Post count: 2
    #13874 |

    Ok, Thank you very much. That helped me.

You must be logged in to reply to this topic.