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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Coloring Appointments based on Custom Attributes

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,
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



Screenshot_369a1b5f.zip

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.


CONFIRMATION

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.

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

;