You’ve talked and we’ve listened: as of Beta 2 release of RadControls for Windows Phone 7 the RadTimePicker and RadDatePicker controls support null-value. In other words, you will be able to set the current value to null and display a custom message to your users informing them that there is no value selected in the control at the time:
There are also two additional properties which are used in this context:
EmptyContent – defining the content that will be displayed to the user when there is no value selected in the control
EmptyContentTemplate – defining how the empty content will be displayed to the user
The EmptyContent property is of type object and in the simplest scenario can be set to a string that the end user will see when the Value property of the RadDate- or RadTimePicker control is set to null. You can also implement a more complex scenario by setting any type of business objects to this property and also defining EmptyContentTemplate. The EmptyContentTemplate property is of type DataTemplate and defines how the information from the EmptyContent object will be presented. So, basically, you are able to define any type of rich content that will be displayed to the end user when the value of the RadTime- or RadDatePicker is set to null.
It is important noting that these new features imply some breaking changes in both the RadDate- and RadTimePicker controls. From now on, the Value property changes its type from DateTime to DateTime? (nullable DateTime). The ValueChanging and ValueChanged events are updated in this context as well. So, if you are using these controls and plan to check out our new Beta 2 release make sure to consider this.
Copyright © 2016, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.