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
Hello Seth,
What control are you using? Could you please also post a screenshot of what you mean by indication of the start date and what you want to have in the end date?I will be glad to assist you further on that matter!
Hello Boris,
I'm using the UltraCalendar control, having trouble specifically with the UltraCalendarInfo class.
Essentially, what I want is for the end date to appear on the right hand side of the node created by the UltraCalendarInfo class, with some sort of indication that it is the end date (along with an arrow pointing in the other direction from the one to the left of the start date). That may be a confusing explanation of what I am expecting. If so, please let me know, and I will try to clarify.
Thank you!
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!
Please take a look at my screenshot, I have both arrows showing with exact indications of start and end time. Is not that what you want? Please let me know.
That is exactly what I want to do. What do I need to do to have that display?
Hi,
You need to have the control sized properly(width). Please increase the width and you will see this result.
If this is not the case, please let me know.
What I'm curious about on that is that I am docking the control (which, as I look at it, was not an UltraCalendar, but an UltraDayView, sorry about that...) to fill the window. So, I don't think that the length would be an issue. I do have other properties set differently than their defaults, but nothing other than background colors, and the TimeSlotInterval. Adjusting the width does not appear to have done anything, simply because I'm docking the control programatically when the window loads.
Do you know if there are any other properties that would cause this issue?
I hope that it will be working in the future also, if it is not, we will be happy to assist on that matter.
I completed the simplified solution, but I fear it is going to raise more questions on my end than it answers, because the arrows are showing up as expected. So, I will be adding pieces back to it bit-by-bit until I determine the root cause for the issue. That being said, I won't attach the current solution, but will instead wait until such time as I re-encounter the issue again. Hopefully, I will be able to fix the issue myself, but, if not, I will come back and attach the solution for you. If I can figure out what the issue is, I will post it here as the answer.
Thank you for your patience and assistance!
I will be waiting for it. Thank you for taking the time to make the sample, I appreciate it.
I am in the process of creating a sample project that behaves similarly to the original project, without giving you too much of the original system, because it is extensive. I have had bigger enhancements that needed to be made to other systems, so this one got pushed to the back burner for a little while.
I hope to have a sample for you by the end of the day today.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.