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.
Unfortunately, activation email could not send to your email. Please try again.

Disable AllDay Events

Thread ID:

Created:

Updated:

Platform:

Replies:

129101 Feb 27,2017 11:47 AM Aug 23,2017 10:04 AM Windows Forms 3
loading
Tags: ScheduleControl
Rigoberto Martinez
Asked On February 27, 2017 11:47 AM

Hi,

How can I hide the "Double Click to Add All Day Event" button on the DayView? 

Mohanraj Gunasekaran [Syncfusion]
Replied On February 28, 2017 10:09 AM

Hi Rigoberto, 

Thanks for using Syncfusion products. 

In order to hide the "Double Click to Add All Day Event" button on the DayView, you can use the RowHeights property. Please refer to the below code example, 
 
Code example 
this.scheduleControl1.ScheduleType = ScheduleViewType.Day; 
this.scheduleControl1.GetScheduleHost().RowHeights[1] = 1; 
 
 
Screenshot 
 
 
Sample link: ScheduleControl 
 
Note 
Please make sure to set the RowHeight[1] property to 1 when you change the ScheduleView of the control to hide that button for every view update. 
 
Regards, 
Mohanraj G. 
 


Truth Seeker
Replied On August 22, 2017 03:42 AM

Hi Rigoberto, 

Thanks for using Syncfusion products. 

In order to hide the "Double Click to Add All Day Event" button on the DayView, you can use the RowHeights property. Please refer to the below code example, 
 
Code example 
this.scheduleControl1.ScheduleType = ScheduleViewType.Day; 
this.scheduleControl1.GetScheduleHost().RowHeights[1] = 1; 
 
 
Screenshot 
 
 
Sample link: ScheduleControl 
 
Note 
Please make sure to set the RowHeight[1] property to 1 when you change the ScheduleView of the control to hide that button for every view update. 
 
Regards, 
Mohanraj G. 
 


This is not working for me. I am adding a ScheduleControl dynamically at runtime and setting all its properties: 

var scheduleControl1 = new Mastermind.Syncfusn.Schedule.CustomControls.Schedule();

scheduleControl1.SuspendLayout();

scheduleControl1.Appearance.VisualStyle = GridVisualStyles.Metro;

scheduleControl1.Appearance.ShowCaptionButtons = false;

scheduleControl1.NavigationPanel.Visible = false;

scheduleControl1.ShowRoundedCorners = true;

scheduleControl1.AllowAdjustAppointmentsWithMouse = false;

scheduleControl1.ScheduleType = viewType;

scheduleControl1.CaptionPanel.Visible = false;

scheduleControl1.SwitchToScheduleViewTypeDay(DateTime.Now.Date);

scheduleControl1.GetScheduleHost().RowHeights[1] = 1;

scheduleControl1.ResumeLayout(true);


Mohanraj Gunasekaran [Syncfusion]
Replied On August 23, 2017 10:04 AM

Hi Truth, 

Thanks for using Syncfusion product. 

I have tested your scenario using below test cases using below attached sample, 

  • Tried with customer settings in button click.
  • Tried to remove the old schedule control and add the newly created schedule control with customer provided settings at run time.
 
But we are unable to reproduce your scenario. Please let us know if we missed any test cases or anything missed in below sample, please modify the below sample or provide the sample to reproduce your scenario. It will be helpful to provide the solution at the earliest. 
 
Regards, 
Mohanraj G.  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;