Hide horizontal scrollbar and custom navigation in RadSchedule for winforms?

2 posts, 1 answers
  1. Karl
    Karl avatar
    172 posts
    Member since:
    Sep 2010

    Posted 08 Jun 2012 Link to this post

    As the subject suggests, I would like to know if I can hide the horizontal scrollbar in a RadSchedule control when in timeline view?

    Also, I would like to know if it's possible to navigate forwards and backwards through the timeline using events? IE have "Forward" and "Backward" buttons to move forwards or backwards a week at a time.

    Thanks,
    Karl
  2. Answer
    Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 12 Jun 2012 Link to this post

    Hello Karl,

    Thank you for your questions.

    Yes, you can hide the horizontal scrollbar in TimelineView. Here is how you can achieve this:
    this.radScheduler1.GetTimelineView().ShowNavigationElement = false;

    Also, it is possible to create custom navigation buttons. The following code snippet demonstrates this:
    private void nextButton_Click(object sender, EventArgs e)
    {
        new NavigateToNextViewCommand().Execute(this.radScheduler1);
    }
     
    private void prevButton_Click(object sender, EventArgs e)
    {
        new NavigateToPreviousViewCommand().Execute(this.radScheduler1);
    }

    I hope you find this useful. Do not hesitate to ask if you have any further questions.

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top