MaskedDateTimeInput error when in a dataform

2 posts, 0 answers
  1. PaulH
    PaulH avatar
    40 posts
    Member since:
    Mar 2011

    Posted 24 Oct 2013 Link to this post

    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:

            <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}}"/>-->
    (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
  2. Petar Mladenov
    Petar Mladenov avatar
    2992 posts

    Posted 28 Oct 2013 Link to this post

    Hello Paul,

     We managed to reproduce this issue. We logged it in our PITS today cause it was also reported by other clients. We will work on this bug with highest priority in the following days and will keep you updated. We will also try to provide a workaround if applicable.

    Petar Mladenov
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top