C1Schedule - Hide Time

Posted by: mwebster on 28 January 2020, 7:32 am EST

    • Post Options:
    • Link

    Posted 28 January 2020, 7:32 am EST

    I have a small issue with the C1Schedule control. I need to show appointments in the month view without the time appearing - just the name of the Subject. Currently it shows Time . How can I get rid of that time display. Perhaps setting all of the appointments to “All Day” appointments? If so, how would I go about that?

    Thanks,

    Mike

  • Posted 28 January 2020, 9:57 pm EST

    Hello Mike,

    It is the default behavior that can not be changed because in ScheduleViewEnum.MonthView there is no time ruler so if the appointment is not a AllDayEvent then start and end time will automatically be shown in the output.

    You can use other ViewTypes such as DayView or WeekView if you don’t want to show time in the displayed appointment.

    Regards,

    Prabhat Sharma.

  • Posted 28 January 2020, 11:22 pm EST

    Ok, that is fine but how do I tag an appointment as an all day event it code? I am using this code to do the mapping from my database:

        Dim ScheduleTable As New DataTable
        Dim JobSchedule As New cJobScheduleList(ConnStr)
        ScheduleTable = JobSchedule.GetMFGSchedule
        C1Schedule1.DataStorage.AppointmentStorage.Mappings.IndexMapping.MappingName = "JobID"
        C1Schedule1.DataStorage.AppointmentStorage.Mappings.Subject.MappingName = "JobNumber"
        C1Schedule1.DataStorage.AppointmentStorage.Mappings.Start.MappingName = "MFGDate"
        C1Schedule1.DataStorage.AppointmentStorage.Mappings.End.MappingName = "MFGDate"
        C1Schedule1.DataStorage.AppointmentStorage.Mappings.Body.MappingName = "JobNotes"
        C1Schedule1.DataStorage.AppointmentStorage.Mappings.Location.MappingName = "GeneratedPartNo"
        C1Schedule1.DataStorage.AppointmentStorage.DataSource = ScheduleTable
        JobSchedule = Nothing
    

    I can’t seem to find any way to identify if as “all day” through code.

  • Posted 28 January 2020, 11:30 pm EST

    Hi Mike,

    I have to correct Prabhat: this is possible ;-).

    this.c1Schedule1.Theme.ShowTimeMonthView = false;
    this.c1Schedule1.Theme.ShowEndTimeMonthView = false;
    
    

    Best regards

    Wolfgang

  • Posted 29 January 2020, 3:40 am EST

    Thanks!

Need extra support?

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

Learn More

Forum Channels