Issue with AppointmentStatusInfo

3 posts, 0 answers
  1. Cory
    Cory avatar
    11 posts
    Member since:
    Feb 2011

    Posted 06 Nov 2012 Link to this post

    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. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 09 Nov 2012 Link to this post

    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.
  3. DevCraft R3 2016 release webinar banner
  4. Cory
    Cory avatar
    11 posts
    Member since:
    Feb 2011

    Posted 09 Nov 2012 Link to this post

    You are too cool for school!

Back to Top