This is a migrated thread and some comments may be shown as answers.

Forcing RadScheduler to redraw

1 Answer 175 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Matias
Top achievements
Rank 1
Matias asked on 19 Feb 2013, 07:24 PM
Hi,

I'm working right now on a project that has certain settings that can be changed by the user. This settings change the background and foreground color of the appointments, the ruler range, the working hours and so on. All of this occurs during runtime, so the changes made need to be shown to the user during the same program session.

I found out that to update the appointments (Back and fore color), I can call the following method:
RadScheduler1.SchedulerElement.View.UpdateAppointments(RadScheduler1.Appointments)

Can you please confirm this is the correct way to force the appointments to be re-drawn? And also, can you please provide some information on how to accomplish the same with other situations? (ruler range, working hours...)

Thank you all for your time!
Matias.

1 Answer, 1 is accepted

Sort by
0
Accepted
Julian Benkov
Telerik team
answered on 22 Feb 2013, 02:15 PM
Hello Matias,

You can use the Refresh method of SchedulerElement to update the UI of RadScheduler:
RadScheduler1.SchedulerElement.Refresh()

I hope this helps.

Kind regards,
Julian Benkov
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
Scheduler and Reminder
Asked by
Matias
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or