Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
UltraTimeLineView end time
posted

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 min
DateTime maxEndTime = (m_ShowEndTime.Value > m_ShowRealEndTime.Value) ? m_ShowEndTime.Value : m_ShowRealEndTime.Value;

ultraCalendarInfo1.MinDate = m_ShowStartTime.Value;
ultraCalendarInfo1.MaxDate = maxEndTime;

 

 

 

Parents
  • 69832
    Offline posted

    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.

Reply Children