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

Change color to custom descriptions

2 Answers 109 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 25 Apr 2013, 05:59 PM
Hello
I'm trying to create custom backgrounds for appointments.
The code is used to add:

Me.RadScheduler1.Backgrounds.Add((New AppointmentBackgroundInfo(23, "Orange", Color.Orange, Color.Orange)))
Me.RadScheduler1.Backgrounds.Add((New AppointmentBackgroundInfo(24, "Yellow", Color.Gold, Color.Gold)))
Me.RadScheduler1.Backgrounds.Add((New AppointmentBackgroundInfo(25, "Green", Color.YellowGreen, Color.YellowGreen)))

The problem is that the text of the description and the location is the same color. Deputy image to view
http://img211.imageshack.us/img211/2582/examplerz.png


Is there a way to customize the text of the description and the location?
Deputy image to show how I want.
http://img825.imageshack.us/img825/1968/app1z.png

I visited the references page but I do not go out of doubt ( http://www.telerik.com/help/winforms/scheduler-appointments-and-dialogs-working-with-appointments.html )

I'm using Visual Basic.net 2012 Framworks 4.5 whith telerik Q1 2013
thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Michael
Top achievements
Rank 1
answered on 25 Apr 2013, 08:05 PM
Solved 

Me.RadScheduler1.Backgrounds.Add((New AppointmentBackgroundInfo(25, "Green", Color.YellowGreen, Color.YellowGreen, Color.white, Color.white
)))



I have added ",  Color.white, Color.white"


:)

0
Stefan
Telerik team
answered on 30 Apr 2013, 08:19 AM
Hi Michael,

I am that that you have found the solution to your case. Here is the constructor of the AppointmentBackgroundInfo class if someone needs it in future:
/// <summary>
/// Initializes a new instance of the <see cref="AppointmentBackgroundInfo"/> class with a linear gradient.
/// </summary>
/// <param name="id">The id.</param>
/// <param name="displayName">The display name.</param>
/// <param name="color">The first gradient color.</param>
/// <param name="color2">The second gradient color.</param>
/// <param name="foreColor">The fore color.</param>
/// <param name="borderColor">The border color.</param>
public AppointmentBackgroundInfo(int id, string displayName, Color color, Color color2, Color foreColor, Color borderColor)
 

Regards,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
Scheduler and Reminder
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or