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

How to change color when I select custom radcombobox?

3 Answers 112 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Waranya
Top achievements
Rank 1
Waranya asked on 02 Sep 2009, 09:44 AM
I crated custom radcombobox in EditAppointmentDialog. I don't know how to change color of Scheduler's cell when I select custom radcombobox?

How I change background color which display on appointment schedule? help me please.

Thank you,
Pum+

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 04 Sep 2009, 09:48 AM
Hello Waranya,

To change the background of an appointment you can double-click on the appointment and use the Background combo box in the EditAppointmentDialog. When you select an item from the comb box you should click the "Ok" button to apply the new style.

You can also change the Background  manually using a code like this:

           Appointment newAppointment = new Appointment();
            newAppointment.Start = scheduler.ActiveView.StartDate.AddHours(1);
            newAppointment.End = newAppointment.Start.AddHours(5);
            newAppointment.Background = AppointmentBackground.PhoneCall;
            scheduler.Appointments.Add(newAppointment);

If you need more help, please write us back.

Sincerely yours,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Waranya
Top achievements
Rank 1
answered on 04 Sep 2009, 10:12 AM
Thank you Boyko Markov,
 But I want to change background color when I click the "OK" button after I change index of the "Position" Radcobobox on EditAppointmentDialog

Help me again,
Pum+
0
Boyko Markov
Telerik team
answered on 04 Sep 2009, 11:26 AM
Hello Waranya,

You can review the solution in ticket Id: 240314. You can only change the existing BackGroundInfos and StatusInfos of RadScheduler and there is no way to add a new StatusInfo or BackGroundInfo in the current version of RadScheduler. When you select an item from the background combo box and press the Ok button the new style will be automatically updated.

For example when you double-click on an appointment or create a new appointment by double-clicking on a cell. The EditAppointmentsDialog window will be shown automatically. Appointment default BackGroundInfo is shown as None. Change it to Important and click the Ok button to save the changes. The result is that the silver colored appointment will be rendered as a red colored appointment.

Please feel free to contact me again if you need more information.

Sincerely yours,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler and Reminder
Asked by
Waranya
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Waranya
Top achievements
Rank 1
Share this question
or