I updated to Silverlight release Q3 2013 yesterday from Q2 2013 and rebuilt one of our Silverlight applications and I now have a problem with one of my views. The view is bound to a viewmodel and a part of the view contains a DataForm. One of my fields is a TimeSpan and has been bound to a RadMaskedDateTimeInput (using a datetime timespan converter) and working fine for the last 18 months or so. Now, since upgrading the Telerik controls to Q3 2013 the view crashes Silverlight completely and I've tracked it down to the MaskedDateTimeInput control inside the DataForm. If I move it outside of the DataForm the view displays correctly. If I replace the MaskedDateTimeInput with a MaskedTextBox and set the MaskType to DateTime that displays fine. The relevant part of the view xaml is here:
(I've fiddled with various settings to try to get things working so I appreciate that some settings above may be unnecessary)
With the DataForm set as it is above the view causes Silverlight to crash with an unhandled exception. If I comment out the RadMaskedDateTimeInput and uncomment the RadMaskedTextBox then the view loads perfectly. Is this a bug or has something changed with the requirements for the date time masked control?
Thanks in advance
<
dataToolkit:DataForm.EditTemplate
>
<
DataTemplate
>
<
dataToolkit:DataField
PropertyPath
=
"FreeViewTime"
Margin
=
"10,0,0,0"
Padding
=
"0"
Visibility
=
"{Binding UseFreeView, Source={StaticResource ResourceWrapper}, Converter={StaticResource BooleanVisibilityValueConverter}}"
>
<
telerik:RadMaskedDateTimeInput
IsClearButtonVisible
=
"True"
EmptyContent
=
"00:00"
Mask
=
"mm:ss"
FormatString
=
"mm:ss"
SpinMode
=
"Position"
TextMode
=
"MaskedText"
SelectionOnFocus
=
"Default"
Value
=
"{Binding FreeViewTime, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True, Converter={StaticResource DateTimeSpanValueConverter}}"
/>
<!--<
telerik:RadMaskedTextBox
EmptyContent
=
"00:00"
Mask
=
"mm:ss"
MaskType
=
"DateTime"
UpdateValueEvent
=
"PropertyChanged"
SelectionOnFocus
=
"Default"
Value
=
"{Binding FreeViewTime, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True, Converter={StaticResource DateTimeSpanValueConverter}}"
/>-->
</
dataToolkit:DataField
>
</
DataTemplate
>
</
dataToolkit:DataForm.EditTemplate
>
With the DataForm set as it is above the view causes Silverlight to crash with an unhandled exception. If I comment out the RadMaskedDateTimeInput and uncomment the RadMaskedTextBox then the view loads perfectly. Is this a bug or has something changed with the requirements for the date time masked control?
Thanks in advance