C1Schedule : How to not change colour of the whole day for an AllDayEvent

Posted by: chris.moxon on 23 August 2021, 7:42 am EST

    • Post Options:
    • Link

    Posted 23 August 2021, 7:42 am EST

    Hi,

    In Outlook, if you set an appointment to an AllDayEvent - it adds the appointment into the “column header” (I’m sure there is a name for that) and that’s the same thing that happens with the C1Schedule control - BUT in Outlook, that is all that changes - but in c1Schedule it changes the colour of every hour in that day - is there a way to stop that from happening ?

  • Posted 24 August 2021, 1:32 am EST

    Hello Chris,

    The backcolor that you are seeing is the BusyStatus color. You can set the custom BusyStatus color using the code below:

    C1.C1Schedule.Status status = new C1.C1Schedule.Status();
                status.Color = Color.Transparent;
                 appointment.BusyStatus = status;
    

    You can also use the predefined availability for the appointment.

    app.BusyStatus = this.c1Schedule1.DataStorage.StatusStorage.Statuses[C1.C1Schedule.StatusTypeEnum.Free];        
    

    If you need any other help, please let us know.

    Regards,

    Prabhat Sharma.

  • Posted 24 August 2021, 6:03 am EST

    Prabhat Sharma - brilliant quick response as usual - many thanks !!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels