Problems with datetime in RadMaskedTextInput

2 posts, 0 answers
  1. Casper
    Casper avatar
    4 posts
    Member since:
    Jul 2012

    Posted 07 Jul 2014 Link to this post

    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
  2. Casper
    Casper avatar
    4 posts
    Member since:
    Jul 2012

    Posted 07 Jul 2014 in reply to Casper Link to this post

    Hi,

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

    best regards,
    Jeppe
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top