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

How to define RadMaskedDateTimeInput initial value ?

2 Answers 146 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Marcos
Top achievements
Rank 1
Marcos asked on 02 Jul 2013, 11:44 PM
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 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 05 Jul 2013, 08:15 AM
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 >>
0
Di
Top achievements
Rank 1
answered on 05 Jul 2013, 07:32 PM
Value="{x:Null}"
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Marcos
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Di
Top achievements
Rank 1
Share this question
or