This question is locked. New answers and comments are not allowed.
Hi,
I have two bindable properties in my view-model: DateBegin and DateEnd. Both are of type DateTime.
Using the RadTimePicker, if binding both MaxValue (DateEnd) and MinValue(DateBegin) I get the following exception:
DateEnd = DateTime.Now
DateBegin = DateEnd.AddHours(-24)
If I set only either one of these properties, the control works without exception but will, of-course, default to a 6 hours window.
Is it a bug or am I doing something wrong?
Thank you,
Erez
I have two bindable properties in my view-model: DateBegin and DateEnd. Both are of type DateTime.
Using the RadTimePicker, if binding both MaxValue (DateEnd) and MinValue(DateBegin) I get the following exception:
System.ArgumentOutOfRangeException: Hour, Minute, and Second parameters describe an un-representable DateTime. at System.DateTime.TimeToTicks(Int32 hour, Int32 minute, Int32 second) at System.DateTime..ctor(Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) at Telerik.UI.Xaml.Controls.Input.DateTimePickers.DateTimeList.GetDateTimeAt(Int32 logicalIndex) at Telerik.UI.Xaml.Controls.Input.DateTimePickers.DateTimeList.IsItemEnabled(Int32 logicalIndex) at Telerik.UI.XDateEnd = DateTime.Now
DateBegin = DateEnd.AddHours(-24)
If I set only either one of these properties, the control works without exception but will, of-course, default to a 6 hours window.
Is it a bug or am I doing something wrong?
Thank you,
Erez