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

Issue with AppointmentStatusInfo

2 Answers 47 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Cory
Top achievements
Rank 1
Cory asked on 07 Nov 2012, 05:19 AM
I am using the AppointmentStatusInfo() to replace the appointment status dropdown.  The following code is what I am using...

this.radTTSched.Statuses.Add(new AppointmentStatusInfo(0, "Booked", Color.Green, Color.Green, AppointmentStatusFillType.Solid));

this.radTTSched.Statuses.Add(new AppointmentStatusInfo(1, "Show", Color.Blue, Color.Blue, AppointmentStatusFillType.Solid));

this.radTTSched.Statuses.Add(new AppointmentStatusInfo(2, "No Show", Color.Red, Color.Red, AppointmentStatusFillType.Solid));

this.radTTSched.Statuses.Add(new AppointmentStatusInfo(3, "Cancel", Color.Red, Color.Red, AppointmentStatusFillType.Solid));

All colors will show correctly in my scheduler except Status = 2 for No Show.  If I change this value from 2 to any other value, it works correctly.  Is there something sacred about status value of 2?  This is a legacy database that I am integrating with and I am not able to change that value from 2 to something else.  Please help!

2 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 09 Nov 2012, 02:34 PM
Hi Cory,

Thank you for contacting us.

The value of 2 is internally used as the id of the default status info. Therefore, appointments with status id of 2 have the default appearance. You can change the value of the default id via the following property:
AppointmentStatusInfo.DefaultStatusId = -1;

I hope this will help you. Feel free to ask if you have any additional questions.

Kind regards,
Ivan Todorov
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
0
Cory
Top achievements
Rank 1
answered on 09 Nov 2012, 03:56 PM
You are too cool for school!

thanks!
Tags
Scheduler and Reminder
Asked by
Cory
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Cory
Top achievements
Rank 1
Share this question
or