Home Forums FlexGanttFX setSelectedActivity / scroll to row and activity

Viewing 1 reply thread
  • Author
    • Martin
      Post count: 10
      #13016 |
      1. how can I set an activity as selected (to get it in getGraphics().getSelectedActivities())?
      2. how can I scroll a specific row and activity to the visible area?
    • Dirk Lemmermann
      Post count: 69
      #13017 |

      Next time please post two separate tickets 🙂

      1. simply add the activity to the list returned by getSelectedActivities(). Just be aware that you need to add an ActivityRef and not just an Activity to the list. An ActivityRef consists of the activity itself, the row on which it is placed, and the layer where it is shown.
      2. there is no utility method for doing this, yet (please file a ticket). You will need to call scrollTo() on the tree table view and then request a specific time on the timeline (Timeline.showTime()).




Viewing 1 reply thread
  • You must be logged in to reply to this topic.