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

Problems with datetime in RadMaskedTextInput

1 Answer 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Casper
Top achievements
Rank 1
Casper asked on 07 Jul 2014, 07:41 AM
Hi Telerik,

I have just upgraded my telerik software to the Q2 2014 version.

I know that RadMaskedTextBox have been removed. So i guess i have to use RadMaskedTextInput.

Before i had some code that allowed the user to edit a timestamp but only the hours, minutes and seconds. I did this using the RadMaskedTextBox like below:
<telerik:RadMaskedTextBox IsEnabled="{Binding IsManualCalculate}" Margin="0" Value="{Binding CalculationStart}"
Mask="HH:mm:ss" MaskType="DateTime" Width="60" />

Now that this Control have been removed i dont know how to achieve the same funcitonality. I have tried this:
<telerik:RadMaskedTextInput IsClearButtonVisible="False" IsEnabled="{Binding IsManualCalculate}" Margin="0" Value="{Binding CalculationEnd}" Mask="HH:mm:ss" Width="65" />

But the user cannot edit the text in the RadMaskedTextInput - it just displays HH:mm:ss. I can see that it does not contain the proerty MaskType.


So how would i achieve the same functionality as before?

Best regards,
Jeppe

1 Answer, 1 is accepted

Sort by
0
Casper
Top achievements
Rank 1
answered on 07 Jul 2014, 07:48 AM
Hi,

I have just discovered that a RadMaskedDateTimeInput control exists which solves my problem. Sorry about this :)

best regards,
Jeppe
Tags
General Discussions
Asked by
Casper
Top achievements
Rank 1
Answers by
Casper
Top achievements
Rank 1
Share this question
or