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

Assign Null to Time Picker

1 Answer 49 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
Syed Danish
Top achievements
Rank 1
Syed Danish asked on 18 Apr 2011, 02:24 PM
Hi,

My requirement is to show an empty time picker should be something like the file attached. My business property is of the type Time Span and is bind ed to the control. I want the time picker to be blank and the user should be able to enter the time when required, else this control should be Blank.

Thanks and Regards,
Syed Danish

1 Answer, 1 is accepted

Sort by
0
Syed Danish
Top achievements
Rank 1
answered on 19 Apr 2011, 10:45 AM
Hi,

Found the solution, Take the business property as Nullable TimeSpan. Assign the property null, bind the control i.e the time picker to that property this will make the time picker empty as you require.

Thanks and Regards,
Syed Danish
Tags
TimePicker
Asked by
Syed Danish
Top achievements
Rank 1
Answers by
Syed Danish
Top achievements
Rank 1
Share this question
or