We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Coloring Appointments based on Custom Attributes

Thread ID:





77224 Oct 21,2008 11:53 AM UTC Oct 21,2008 05:31 PM UTC WinForms 1
Tags: ScheduleControl
Administrator [Syncfusion]
Asked On October 21, 2008 11:53 AM UTC

I am trying to implement a Coloring functionality using the Essential Schedule control. I have created some Custom attributes for the appointments. I want the appointments to be colored based on the value of the Custom attribute that a user can select dynamically.

I am getting the distinct attribute values for the appointments and using these to create an ILookUpObject List. However, when the Schedule Grid is drawn, some cells appear red and also the appointments are not as per the desired color.

Please let me know how I can implement the functionality and avoid this exception

Thanks and Regards,
Vijayant Rao


Administrator [Syncfusion]
Replied On October 21, 2008 05:31 PM UTC

The the red cell indicates that some exception was raised as the embedded ScheduleGrid was trying to draw the cell. (The exception could be almost anything, but my guess would be some kind of null reference or some kind of index out of range exception).

So, you would need to make sure that all the potential values are included in the Labels list, and that all the appointments have a proper value for the label. If you can upload a sample project showing the issue, we can debug it here to find the exact cause of the exceptions.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon