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

Strange input behavior when using Chinese keyboard layout (RadMaskedNumericInput)

1 Answer 124 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 30 Nov 2020, 12:22 PM

I'm currently using the RadMaskedNumericInput as follows:

<telerik:RadMaskedNumericInput Value="{Binding Value}" Mask="#6.3" SelectionOnFocus="SelectAll" UpdateValueEvent="LostFocus" TextMode="PlainText" IsClearButtonVisible="False" AutoFillZeros="True" HorizontalAlignment="Stretch" Culture="zh-CN" Placeholder=" "  AutoFillNumberGroupSeparators="False" />

As long I'm using german or english keyboard settings, this works as exptected. So if I would type in e.g. "1.23" (either with dot or comma as the decimal seperator), I get the exact same value.

But now one of our chinese customers has informed us, that he isn't able to input the values as exptected. So for testing purposes, I switched the keyboard layout virtually to Chinese (simplified, China) - Microsoft PinYin. This is then things start to get strange: With that, if I click in the control as before and then typing "1.23", I get the odd number "100.010,200" (again same result either for dot or comma).

Does anyone know why this happens and how to avoid this behavior?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 03 Dec 2020, 08:38 AM

Hi Benjamin,

Thank you for the provided code snippet.

I need to point out that RadMaskedInput does not support Chinese input properly. There is logged a feature request in our Feedback Portal. You can track its progress, subscribe for status changes, and add your vote/comment to it. We are constantly trying to improve our MaskedInput controls when Chinese language preference is used. In your case, you are using RadMaskedNumericInput, which should have fewer input problems. Therefore I will ask you to isolate this behavior in a standalone project and provide steps to reproduce this as I wasn't able to reproduce this behavior.

As a side note, can you try the following set-up of the mask at your side and share if this improves the input.

<telerik:RadMaskedNumericInput x:Name="mask" Value="{Binding Value}" Mask="#6.3" SelectionOnFocus="SelectAll" UpdateValueEvent="PropertyChanged" TextMode="PlainText" IsClearButtonVisible="False" AutoFillZeros="True" HorizontalAlignment="Center" VerticalAlignment="Center" InputBehavior="Replace" Placeholder="&#160;"  AutoFillNumberGroupSeparators="False" />

Regards,
Dinko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products, quickly just got a fresh new look + new and improved content, including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or