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

DivisionsPerHour change at runtime

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.

1 Reply

AS Amresh S Syncfusion Team 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. 
 
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. 
 


Loader.
Up arrow icon