How to define RadMaskedDateTimeInput initial value ?

3 posts, 0 answers
  1. Marcos
    Marcos avatar
    5 posts
    Member since:
    Jul 2012

    Posted 02 Jul 2013 Link to this post

    Hi all,

    I have a RadMaskedDateTimeInput defined as below.
    The property which the control is bound (SelectedFechamento.FECHAMENTO_HORA_TERMINO_SERVICO) is null but the control shows the current hour and minute, how to avoid this (I want to see the control empty when its property is null)

    Thank you very much
    Marcos
    <telerik:RadMaskedDateTimeInput
        Value="{Binding SelectedFechamento.FECHAMENTO_HORA_TERMINO_SERVICO, Mode=TwoWay}"
        TextMode="MaskedText"
        Mask="HH:mm"
        InputBehavior="Replace"
        SpinMode="Position"
        SelectionOnFocus="SelectAll"
        UpdateValueEvent="PropertyChanged"
        IsClearButtonVisible="False"
        Height="23"
        Margin="621,131,117,0" 
        TabIndex="11"
        VerticalAlignment="Top"
        Width="118" />
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 05 Jul 2013 Link to this post

    Hi Marcos,

    Could you please check out the attached project? We have DateTime? property in the ViewModel , its initial Value is null and the control is empty on load. We use Q2 2012 dlls to test.

    Regards,
    Petar Mladenov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    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 >>
  3. DevCraft banner
  4. Di
    Di avatar
    16 posts
    Member since:
    Jul 2013

    Posted 05 Jul 2013 Link to this post

    Value="{x:Null}"
Back to Top