Setting an Appointment's TextColor doesn't appear to work.

2 posts, 0 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 29 Sep 2011 Link to this post

    Have a look at the clipboard1.gif.

    You'll see that there is a treeview and a scheduler. Now, the nodes in the treeview are coloured for the claendar they represent and the appointments in the scheduler are supposed to coloured for the calendars that are associated with.

    However, I'm sure that you'll note that whilst, for the greater part, the appointments have been correctly coloured in the background, the text colour is always black.

    FYI, I'm using the following bit of code in the AppointmentDataBound event for colouring the appointment ...

    e.Appointment.BackColor = ColorTranslator.FromHtml(calEvent.BackColour);
    e.Appointment.ForeColor = ColorTranslator.FromHtml(calEvent.TextColour);

    No, I know that the code is working 'cos I can see that it's been set using the IE developer tools, but the inline style is being overridden.

    Clipboard2.gif shows the output from the IE developer tools that cearly show that the appointment's text colour is being overriden by the .rsAptContent class.

    Obviously, I need to override this, but it strikes me as wrong that there should be something with a higher priority than setting the colour in the code-behind as I am doing.

  2. Plamen
    Plamen avatar
    2818 posts

    Posted 04 Oct 2011 Link to this post

    Hi Stuart,

    Thank you for reporting this issue. It seems like a bug in the Black skin(may be some other as well). I've logged it for fixing.

    All the best,
    Plamen Zdravkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top