Home Forums FlexGanttFX setSelectedActivity / scroll to row and activity

  • Author
    Posts
  • Martin
    Participant
    Post count: 8
    #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
    Keymaster
    Post count: 61
    #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()).

    Dirk

     

     

You must be logged in to reply to this topic.