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!
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 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.
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!
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.
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.