Hi,
I'm wondering about how to set the end-time of the UltraTimeLineView. Start time works ok.
The idea behind the problem is that I need a timeline for a conference, and not the whole day, or even more than a day in the view.
As I said, the start date is correctly set, but the end date (in the timelineview) is just somehow 2-3 days later (even if it should be 10 hours later).
Tnx all.
My current code is:
//m_TimeLine.PrimaryInterval = new TimeInterval(1, TimeIntervalUnits.Hours);////calculate max time to display in timeline - maximum time + 5 minDateTime maxEndTime = (m_ShowEndTime.Value > m_ShowRealEndTime.Value) ? m_ShowEndTime.Value : m_ShowRealEndTime.Value;ultraCalendarInfo1.MinDate = m_ShowStartTime.Value;ultraCalendarInfo1.MaxDate = maxEndTime;
It sounds like you are under the misconception that the control will not display dates that fall later than the MaxDate. This is not the case; it renders those dates inaccessible to the user (i.e., disables them), but the reason it is not possible to hide them is because the user can resize the control horizontally, so dates that fall after the MaxDate would be made visible as soon as the control is sized horizontally in such a way as to make it wider.
I am under a similar misconception. I don't want the timeline to show beyond the min/max date as the future makes no sense in the particular application. Is there a way to make it so the control effectively doesn't show those dates?