RadScheduleView - Change Appointment Dialog Background

1 Answer 113 Views
Forum suggestions Telerik TV
Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
Ohad asked on 19 Dec 2021, 10:18 AM | edited on 19 Dec 2021, 10:27 AM

Hi,

I would love if you could help me, how do I change the background of the Appointment Dialog and also the border of the dialog?

I tried to change in all sorts of places in the code without success.

Thanks

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 24 Dec 2021, 06:50 AM

Hello Ohad,

To change the background of the appointment, the default control template of the appointment dialog would need to be extracted and modified. You could follow the steps from the Editing Control Templates article, and the needed template has x:Key="EditAppointmentTemplate". In it, set the Background property of the main Grid layout to the needed color. Then, create a style that targets the telerik:SchedulerDialog element and set its Template property to the modified control template. Finally, create an additional style with telerik:RadScheduleView as target type and set its EditAppointmentDialogStyle to the style that has the extracted control template set in.

To change the BorderBrush brush, follow the steps from the Customizing Dialog Windows article since, by default, the RadScheduleView dialogs are displayed in RadWindow instances.

With that said, I have prepared a sample project for you to test, and I hope that the provided information is of help to you.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Forum suggestions Telerik TV
Asked by
Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Stenly
Telerik team
Share this question
or