This is a migrated thread and some comments may be shown as answers.

RadschedulerNavigator Timeline

2 Answers 309 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 22 May 2012, 12:11 PM
Hi,

I've been looking at the the events under Misc and I can't seem to find the TimelineViewClick?
http://screencast.com/t/AGYafvBjDcj

What event is fired when you click on timeline view?

Thanks

2 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
answered on 23 May 2012, 04:12 PM
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;
            _loadingTimelineView=true;
            ApplyMyTimelineSettings();
        }
        else
            _loadingTimelineView=false;
    }
}

Hope this helps
Daniel
0
Ivan Todorov
Telerik team
answered on 28 May 2012, 10:38 AM
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 >>
Tags
Scheduler and Reminder
Asked by
Karl
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 1
Ivan Todorov
Telerik team
Share this question
or