RadschedulerNavigator Timeline

3 posts, 0 answers
  1. Karl
    Karl avatar
    172 posts
    Member since:
    Jun 2009

    Posted 22 May 2012 Link to this post


    I've been looking at the the events under Misc and I can't seem to find the TimelineViewClick?

    What event is fired when you click on timeline view?

  2. Daniel
    Daniel avatar
    19 posts
    Member since:
    Nov 2010

    Posted 23 May 2012 Link to this post

    Hi Karl

    Yes, would be nice if Telerik exposes this Click event for the timeline button in the navigator.
     In the meantime you could uses the ActiveViewChanging Event, cancel it and call your own function to apply settings scales...

    private void radScheduler1_ActiveViewChanging(object sender, SchedulerViewChangingEventArgs e)
        if (e.NewView.ViewType == SchedulerViewType.Timeline)
            if (!(_loadingTimelineView))
                e.Cancel = true;

    Hope this helps
  3. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 28 May 2012 Link to this post

    Hello Karl,

    Thank you for contacting us.

    This event has not been exposed at a control level, but you can subscribe to it by using the following code:
    this.radSchedulerNavigator1.SchedulerNavigatorElement.TimelineViewClick += new EventHandler(SchedulerNavigatorElement_TimelineViewClick);

    The solution that Daniel suggested is also a valid one. However, the ActiveViewChanging event will fire every time the view is changed (even via some custom functionality, event handler, etc.). The TimelineViewClick will fire only when the user clicks the Timeline button in RadSchedulerNavigator.

    We will consider exposing this event in the Visual Studio's property table with the next official release.

    @Daniel: Thank you for helping our community members in the forums. Your Telerik points have been updated.

    @Karl: Thank you for bringing this omission to our attention. Your Telerik points have also been updated.

    И хope this helps. Feel free to ask if you have any additional questions.

    Kind regards,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top