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

Disable AllDay Events

Hi,

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

3 Replies

MG Mohanraj Gunasekaran Syncfusion Team February 28, 2017 03:09 PM UTC

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. 
 



TS Truth Seeker replied to Mohanraj Gunasekaran August 22, 2017 07:42 AM UTC

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);



MG Mohanraj Gunasekaran Syncfusion Team August 23, 2017 02:04 PM UTC

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.  


Loader.
Up arrow icon