How to change color when I select custom radcombobox?

4 posts, 0 answers
  1. Waranya
    Waranya avatar
    35 posts
    Member since:
    Dec 2007

    Posted 02 Sep 2009 Link to this post

    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+
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 04 Sep 2009 Link to this post

    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.
  3. Waranya
    Waranya avatar
    35 posts
    Member since:
    Dec 2007

    Posted 04 Sep 2009 Link to this post

    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+
  4. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 04 Sep 2009 Link to this post

    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.
Back to Top