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.

DivisionsPerHour change at runtime

Thread ID:

Created:

Updated:

Platform:

Replies:

124579 Jun 15,2016 09:03 AM Jun 16,2016 09:17 AM Windows Forms 1
loading
Tags: ScheduleControl
Dario Fraschini
Asked On June 15, 2016 09:03 AM

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 09:17 AM

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. 
 
CodeSnippet: 
// Trigger the required event. 
this.scheduleControl1.Appearance.DivisionsPerHourChanged += new EventHandler(Appearance_DivisionsPerHourChanged); 
 
void Appearance_DivisionsPerHourChanged(object sender, EventArgs e) 
{ 
     this.scheduleControl1.Update(); 
} 
 
Note: 
Please make use of the below sample. Please let us know if we missed anything. 
 
Sample: 
 
Regards, 
Amresh S. 
 


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.

;