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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DivisionsPerHour change at runtime

Thread ID:





124579 Jun 15,2016 01:03 PM UTC Jun 16,2016 01:17 PM UTC WinForms 1
Tags: ScheduleControl
Dario Fraschini
Asked On June 15, 2016 01:03 PM UTC

Hello, what I have to do to update the appearence of scheduleControl when I change the Appearence.DivisionsPerHour setting at runtime?

I tried with schedulecontrol1.refresh() or schedulecontrol1.getschedulecontrol().UpdateStyles() and other things, but no change.
Thank you.

Amresh S [Syncfusion]
Replied On June 16, 2016 01:17 PM UTC

Hi Dario, 
Thank you for using Syncfusion products. 
In order to update the values dynamically changed for the DivisionsPerHour property, you can use the DivisionsPerHourChanged event via the Appearance property and the  scheduleControl1.Update() method to update the schedule control. Please make use of the below code snippet and the attached sample. 
// Trigger the required event. 
this.scheduleControl1.Appearance.DivisionsPerHourChanged += new EventHandler(Appearance_DivisionsPerHourChanged); 
void Appearance_DivisionsPerHourChanged(object sender, EventArgs e) 
Please make use of the below sample. Please let us know if we missed anything. 
Amresh S. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon