Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Modifying the WorkDayStartTime of UltraDayView
posted

Hi, I have a calendar control and in the Dayview, by default the start time of the appointments is 8 am and the end time is 5 pm. I would like to modify it to let's say 7 am to 6 pm. I tried doing the following: udvMasterDay is UltraWinSchedule.UltraDayView

Dim day = udvMasterDay.CalendarInfo.ActiveDay.Date

udvMasterDay.CalendarInfo.DaysOfWeek(Day.DayOfWeek).WorkDayStartTime = udvMasterDay.CalendarInfo.DaysOfWeek(Day.DayOfWeek).WorkDayStartTime.AddHours(-1)

udvMasterDay.CalendarInfo.DaysOfWeek(Day.DayOfWeek).WorkDayEndTime = udvMasterDay.CalendarInfo.DaysOfWeek(Day.DayOfWeek).WorkDayEndTime.AddHours(1)

While it looks like it shows a extra space above the first appointment that starts at 8 am, this extra space does not have any times on the left unlike other time slots

Am I doing it the right way. Is there any other way modifying this start and end time can be done? Kindly clarify.

Thank You

Lakshmi

Parents
  • 21795
    Offline posted

    Hello Lakshmi,

    Using the code you posted I was unable to reproduce the behavior you're describing. I have attached the sample project I used to test this as well as a screenshot of the result I had. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this issue.

    If the project does not work correctly, this indicates either an issue possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using Infragistics for Windows Forms 2017 with latest service release. So could you please let me know the exact version of Infragistics components which you are using?

    If the project does show the product feature working correctly, this indicates a possible issue in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.

    Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back.

    Please let me know if I can provide any further assistance.

    UltraDayViewStartTimeIssue.zip
Reply Children