Show More Link to show Timeline view

3 posts, 0 answers
  1. mcpdinkansas
    mcpdinkansas avatar
    70 posts
    Member since:
    Mar 2007

    Posted 29 Apr 2009 Link to this post

    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. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 01 May 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. mcpdinkansas
    mcpdinkansas avatar
    70 posts
    Member since:
    Mar 2007

    Posted 01 May 2009 Link to this post

    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
Back to Top