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

[Solved] How to reset the Value?

1 Answer 221 Views
DatePicker for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Florian
Top achievements
Rank 2
Florian asked on 22 Aug 2012, 06:11 AM
By default the DatePicker has no value so the EmptyContent value is displayed. How to reset the control manually?
*.Value.Value is read-only so i can't set this property to null.

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 22 Aug 2012, 10:52 AM
Hi Florian,

Thank you for contacting us and for your question.

You may do the following to reset the Value of the picker:

this.datePicker.Value = Telerik.Core.NullableValueType<DateTime>.Null

I hope this helps. Let me know if I can assist you in some other way.

Regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DatePicker for XAML
Asked by
Florian
Top achievements
Rank 2
Answers by
Georgi
Telerik team
Share this question
or