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;
Hi bdfranson,
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.
A possible approach to achieve this might be by using a 'CreationFilter'.
You could read about it at the following link: http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Win_Creation_Filter.html.Here are some topics from our community which could also help you: http://community.infragistics.com/forums/t/34485.aspx, http://forums.infragistics.com/forums/t/47561.aspx http://community.infragistics.com/forums/t/58186.aspx, http://community.infragistics.com/forums/t/9989.aspx and http://community.infragistics.com/forums/t/50234.aspx.The above approach is not so recommended, because it features element resizing, creating or removing and could lead to some unexpected behaviors.Please do not hesitate to ask if something comes up.
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?
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.
Anyone?