This is a migrated thread and some comments may be shown as answers.

Datetime picker - MinDate

1 Answer 106 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Ab
Top achievements
Rank 1
Ab asked on 30 May 2013, 03:24 PM
e.g. MinDate = #5/30/2013#
When I set the MinDate to a value the value is also set to MinDate.

   With calStartDate
    .MinDate = MinimumDate
    .MaxDate = MaxDate
    .SetToNullValue()
   End With

Applying SetToNullValue does not reset the value to null/nothing. How can I ensure the value (default) is always set to NULL

 Telerik  WnForms Q1 2013 SP1
VS2010

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 04 Jun 2013, 01:39 PM
Hello,

The described behavior is expected if the control value is less than the min date. In this case, setting a greater min date will change the control value to it.

Calling the SetToNullDate method will null out the NullableValue of the control. For backwards compatibility, we have introduced this property for null value support instead of using the Value property.

I hope that you find this information useful.
 

Regards,
Stefan
Telerik
RadChart for WinForms is obsolete. Now what?
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Ab
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or