Hello,
I am working with the UltraCalendar control, and was wanting to see if there was a way to include an end date on an UltraCalendarInfo element.
Currently, whenever I add an appointment to the calendar, I can see the date that the event started (denoted by an arrow pointing to the left, followed by the date), but cannot see a corresponding end date.
I am setting a new appointment's start- and end-dates, or updating an existing appointment's start- and end-dates, and then adding that appointment to the UltraCalendarInfo's Appointments list, like so:
Dim appt As Appointment If existingAppt IsNot Nothing Then appt = existingAppt appt.StartDateTime = beginTime appt.EndDateTime = endTime Else appt = New Appointment(beginTime, endTime) uci.Appointments.Add(appt) End If
The code continues on and sets the appointment's background colors and border color, but none of the fields that are set appear to affect the data displayed on the UltraCalendarInfo node.
Any assistance in this matter would be appreciated. Thank you!
-Seth
Boris,
I guess I wasn't thinking that they'd both always be showing, but that they would only both be showing if you were in the middle of the date range (for a multi-day appointment). If you're on the first day of the date range, you would only care about seeing the end date out to the right. If you're on the last day of the date range, you would only care about seeing the begin date out to the left. But, say, for instance, it's a Wednesday, and your appointment is a week-long event lasting from Sunday to Saturday. Right now, in my current system, you can only see that the event started on Sunday, but you have no idea how long the event lasts without clicking through the next four days to see that the last day that the event is on the calendar is on Saturday. It's not really a necessity of the system, but it would definitely make it easier to use. Wouldn't you agree?
Thank you for all of your feedback!
Hello Seth,
What will be the purpose of these indicators then if they are both always showing? What would they be based on? I am not saying that I am right for sure and you are not, I am just trying to get some logic here, so I can provide you with a sample or just know how to proceed with this topic. I might be missing something or just misunderstanding you.
I am greatful for your feedback. Thank you in advance for the clarification and your patience on this!
I want to make sure I understand your answer. So, I will use an example. Say I were to create an appointment that started three days ago, and ends three days from today. Are you saying that both arrows (from date and to date) would only show up until Thursday? That seems counter-intuitive to the purpose of the control, which should tell them the full time range of the appointment, regardless of what the current date is.
Thank you!
I researched this and it turned out that this arrow is only showing when the appointment is stretching in time at least a day after today's date.
I have attached the image to this message.