Hi,
We are using 16.2 version and using an UltraDayView bound to an UltraCalendarInfo. The problem we are facing is that there are appointments that are being shown overpaled. We'd like to show one appointment by row when the starting time of next appointment is equal or gretar than the end time of the previous appointment. You can see from the attached image how appointments are being shown. We want this to appear on appointment by line:
1) 15:00 - 15:06 - MARCADA
2) 15:06 - 15:15 - MARCADA
3) 15:15 - 15:24 - MARCADA (this one appears already correct, in on line)
...
There should only overlap if end time of the appointment is breater than the start time of next appointment. How can we achieve this? Should we crate a filter? How?
Thanks.
Hello,
I believe you will get the effect you want if you set the TimeSlotInterval property on the UltraDayView to something smaller. Try using
this.ultraDayView1.TimeSlotInterval = TimeSlotInterval.OneMinute;
Please let me know whether this works for your requirement.
Hi Mike,
With that option we get that effect but that sets us with another problem. The schedule it's going to be too big in height. Each appointment occupies to much screen space. We have appointments that could go from 8:00 to 20:00, each with a period that can go between 3minutes to 30minutes, and setting interval to 1minute we have big blocks for each appointment.
Isn't there any other option to do this?
UltraDayView does not allow you to configure the height of time slots directly. However, you do have some options. Please refer to this thread for more information:https://ko.infragistics.com/community/forums/t/68126.aspx
My recommendation in this case is to use a larger interval, such as ThirtyMinutes. In order to prevent the overlap, you can limit your appointments to begin and end on multiples of this interval: rather than allowing any start and end time, you could force the appointments to begin at half-hour marks.
Please let me know if this works for you.
Changing the height doen'st seems to do nothing in this case. It only reduces text size not all appointment.
Limiting appoints to thirty minutes slots it's not an option, because this is loaded from database and start/end times cannot be changed and they could go from 3 minutes to 30 minutes.
The only option seems to go for the creation filters. Do you have any example to achieve this?
I can assist with specific questions related to building a creation filter. Are you able to provide a mock-up of how you would like the final UI to look? If you can provide a mock-up, I may be able to provide some creation filter code for you.
I do want to caution you that modifying the control in this way using a creation filter may be tricky, as it will be necessary to manage the positioning of all the time slots with custom code. If there is any possibility to modify the appointments themselves to round to the nearest 15-minute interval, this method would be preferred.
I'll prepare a mock-up for you to see what's the problem and if it's possible to resolve bulding a creation filter.
It's strange you don't have this requirement on win schedule control by default, because I don't think we're just the one's that have appointment objects that could have variable periods of time instead of fixed ones, like always 10min. We using this controls to rebuild a booking appointment assistant and the times are schedule to the minute. We can't change the times to get fized periods of times. We can have an appointment that starts at 15:00 and ends at 15:06, followed by another at 15:06 to 15:09 and so on. What we need was that this appointments appeared one after another since they don't overlap in time and we seem to not getting that to work. That is a very big fault and we can't use win schedule like this. It's the only thing that we needed to get all requirements done.
Attached goes a sample that reproduces our issue. You have four appointments that never overlaps in dates but have different sizes. Has you can see, also from attached image, this appoitments appears overlaped in schedule control. The TimeslotInterval is set to five minutes. If we set it to one minute there are no overlap but the size of each appointment becomes too big. We needed the same behaviour for different timeslotIntervals that the appointments shouldn't be overlaped.
Hi Franciso,
Appointments overlap based on whether they exist together in a time slot. Therefore, the overlapping behavior depends on the size of the time slot. We chose to implement it this way as the behavior is designed to be similar to Microsoft Outlook.
If you would like to see this behavior in a future version, I recommend submitting this as a new product idea: http://ideas.infragistics.com/forums/192359-windows-forms.
Please let me know if you have any questions.