We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Removing scrollbar in ScheduleControl

How do I remove the scrollbar in the ScheduleControl?
I've tried this but it didn't work:

scheduleControl1.AutoScroll = false;
scheduleControl1.VerticalScroll.Visible = false;
scheduleControl1.VerticalScroll.Enabled = false;
scheduleControl1.HorizontalScroll.Visible = false;
scheduleControl1.HorizontalScroll.Enabled = false;

3 Replies

SA Solai A L Syncfusion Team October 29, 2015 11:59 AM UTC

Hi Customer,
Thank you for using Syncfusion products.

If you want to hide the scroll bar shown in grid inside the schedule, you need to access the grid as host and disable its scrollbar behavior. Please refer the below code example  and sample for reference.
Code Example :

private void dayToolStripMenuItem_Click(object sender, EventArgs e)

        {

            if (this.scheduleControl1.ScheduleType != ScheduleViewType.Day)

                this.scheduleControl1.PerformSwitchToScheduleViewTypeClick(ScheduleViewType.Day);


            this.scheduleControl1.GetScheduleHost().VScrollBar.Enabled = false;

            this.scheduleControl1.GetScheduleHost().VScrollBehavior = Syncfusion.Windows.Forms.Grid.GridScrollbarMode.Disabled;

        }

Sample : https://www.syncfusion.com/downloads/support/forum/120924/ze/CS1904074574

Note : If your requirement is different from this please let us know with a pictorial representation.

Regards,
Solai A L



K1 k123 November 9, 2015 09:42 AM UTC

Thank you. That helped.


CI Christopher Issac Sunder K Syncfusion Team November 10, 2015 12:13 PM UTC

Hi Customer,
 
Glad to hear that the issue resolved at your end. Please contact us if you have any queries.
 
Regards,
Christo

Loader.
Live Chat Icon For mobile
Up arrow icon