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

Show More Link to show Timeline view

2 Answers 57 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
mcpdinkansas
Top achievements
Rank 1
mcpdinkansas asked on 29 Apr 2009, 01:34 PM
Hey Telerik,

I did not see a thread on this topic already, and could not find examples in the documentation.

Is there a way to update the Show More Link on the scheduler to point to the timeline view and not the day view?

Thanks,
Cody

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 May 2009, 08:58 AM
Hello Cody,

Please, try the following code:
protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)  
    {  
        if (e.Command == SchedulerNavigationCommand.SwitchToSelectedDay & RadScheduler1.SelectedView == SchedulerViewType.MonthView)  
        {  
            RadScheduler1.SelectedView = SchedulerViewType.TimelineView;  
            RadScheduler1.SelectedDate = e.SelectedDate;  
            e.Cancel = true;  
        }          
    } 


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
mcpdinkansas
Top achievements
Rank 1
answered on 01 May 2009, 08:19 PM
Hey Peter,

Thanks! Worked like a charm.

One update, on your line:

RadScheduler1.SelectedDate = e.SelectedDate;

The line i used is:

RadScheduler1.SelectedDate = e.SelectedDay;

I don't know if this is a difference between versions? But none the less it worked!

Thanks for the support,
Cody
Tags
Scheduler
Asked by
mcpdinkansas
Top achievements
Rank 1
Answers by
Peter
Telerik team
mcpdinkansas
Top achievements
Rank 1
Share this question
or