Change color to custom descriptions

3 posts, 1 answers
  1. Michael
    Michael avatar
    5 posts
    Member since:
    Mar 2013

    Posted 25 Apr 2013 Link to this post

    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

    Is there a way to customize the text of the description and the location?
    Deputy image to show how I want.

    I visited the references page but I do not go out of doubt ( )

    I'm using Visual 2012 Framworks 4.5 whith telerik Q1 2013
  2. Answer
    Michael avatar
    5 posts
    Member since:
    Mar 2013

    Posted 25 Apr 2013 Link to this post


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

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


  3. DevCraft R3 2016 release webinar banner
  4. Stefan
    Stefan avatar
    2891 posts

    Posted 30 Apr 2013 Link to this post

    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)

    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top