This question is locked. New answers and comments are not allowed.
Hi There,
I am not sure whether it is the default behavior or not, but it seems strange to me. It happens to all MaskedInput control types.
When I set the binded value to null and the TextMode is in PlainText, parts of the mask still shows. You can see in the screen shot the:
note: comma is the decimal separator here.
what I was expecting is that when the underlying value is null, nothing will show when using PlainText (maybe even MaskedText aswell).
I am using version 2011.1.419.1040.
here is the Xaml:
if this is the default behaviour, please let me know if there is a way to show nothing when the underlying value is null and its set to plaintext.
thanks
Sam
I am not sure whether it is the default behavior or not, but it seems strange to me. It happens to all MaskedInput control types.
When I set the binded value to null and the TextMode is in PlainText, parts of the mask still shows. You can see in the screen shot the:
- MaskedDateTimeInput still shows the dashes
- MaskedNumericInput still shows the comma
- MaskedCurrencyInput still shows the currency symbol and comma
- MaskedTextInput still shows the custom characters.
note: comma is the decimal separator here.
what I was expecting is that when the underlying value is null, nothing will show when using PlainText (maybe even MaskedText aswell).
I am using version 2011.1.419.1040.
here is the Xaml:
<telerik:RadMaskedNumericInput Margin="160,64,-4,54" HorizontalAlignment="Stretch" IsEnabled="{Binding IsEnabled}" d:LayoutOverrides="Height" Mask="#3.6" FormatString="{}{0:N6}" TextMode="PlainText" Value="{Binding DecimalValue, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnNotifyDataErrors=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" AutoFillZeros="False" UpdateValueEvent="LostFocus" /><telerik:RadMaskedCurrencyInput Margin="160,0,-4,26" VerticalAlignment="Bottom" IsEnabled="{Binding IsEnabled}" HorizontalAlignment="Stretch" TextMode="PlainText" Value="{Binding DecimalValue, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnNotifyDataErrors=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" /><telerik:RadMaskedDateTimeInput HorizontalAlignment="Stretch" Margin="160,36,-4,0" IsEnabled="{Binding IsEnabled}" TextMode="PlainText" VerticalAlignment="Top" /><telerik:RadMaskedTextInput HorizontalAlignment="Stretch" Margin="160,0,-4,-2" IsEnabled="{Binding IsEnabled}" VerticalAlignment="Bottom" TextMode="PlainText" Value="{Binding StringValue, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnNotifyDataErrors=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" Mask="(l)'l''l" />if this is the default behaviour, please let me know if there is a way to show nothing when the underlying value is null and its set to plaintext.
thanks
Sam
