Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
Programmatically set cursor position
posted

Hi,

I want to know how to set programmatically the cursor position. For example I want to set the cursor by default on the last event shown in the timeline, because data from this event are displayed in a detail window below.

Currently the cursor is initialized on the left side of the timeline and I haven't seen something to realize the requirement above.

How can I do this?

Regards
Johannes

Parents
No Data
Reply
  • 895
    Verified Answer
    posted

    Hello,

    The cursor is part of an axis which has the following property - SelectedTime. The type of the property depends on the axis you are using:

    • NumericTimeAxis - SelectedTime is of type double.
    • DateTimeAxis - SelectedTime is of type DateTime.

    On the axis you have associated with your event entries, set the SelectedTime property to the event you want to be displayed.

    Example:

    <ig:NumericTimeAxis SelectedTime="1898" />

     

Children