telerik:RadNumericInput MAUI and double values

0 Answers 26 Views
NumericInput
Software
Top achievements
Rank 1
Software asked on 31 Mar 2025, 08:48 AM

Hello, 

In my MAUI application I want to use: 

 <telerik:RadNumericInput Value="{Binding Gamma, Mode=TwoWay}"  StringFormat="{}{0:F1}" Minimum="0" Maximum="4.0" Step="0.1" />

The problem is, I can't type in e.g. "2.1", I type "2." and after I type 1  it make a 4.0 out of it. But I can type  "2 " in it and use the buttons to select "2.1". 

That's a pretty simple use case, what am I doing wrong? 

Thanks,

Harald

Didi
Telerik team
commented on 01 Apr 2025, 10:31 AM

Could you please share on which device the issue happens and what is the device culture / app culture you use?
Software
Top achievements
Rank 1
commented on 02 Apr 2025, 12:25 PM

On Windows. Culture is "en", but also doesn't work in "de".
Didi
Telerik team
commented on 02 Apr 2025, 02:05 PM

I tested on windows and no issues. I have used a physical keyboard. I have attached a video. I pressed dot also comma key and dot is entered in the numeric control.

Additional info:

Please send a video of the behavior on your side and explain in what cases the issue happens. 

What are the .NET and .NET Maui versions you use? You can also send a sample app in which the issue happens.

Software
Top achievements
Rank 1
commented on 08 Apr 2025, 11:10 AM

So I tested it on an empty Maui app and it doesn't work for me. Solution is attached. 
Software
Top achievements
Rank 1
commented on 08 Apr 2025, 11:21 AM

Okay the problem is the the Minimum and Maximum property break the control. Also the Step property break the up, down buttons. 
Software
Top achievements
Rank 1
commented on 08 Apr 2025, 11:24 AM

Recording. 
Dinko | Tech Support Engineer
Telerik team
commented on 10 Apr 2025, 11:07 AM

I appreciate the provided video. I have followed your steps to reproduce this behavior but to no avail. It seems to me that this could be related to the environment or to some other settings. Here are the steps performed on my side.

In the following gif, I type 2 and then try to type a different number. It does not lead to the maximum property value.

In general, if I type a number bigger than the Maximum value, it will be rejected, and the maximum value will be applied. In our case, typing 5 while 4 is maximum, the number 4 will appear as a new value. What you can check on your side is if in some scenario, the control value is not changed programmatically to a bigger value.

In addition, while testing your scenario, I noticed that when using the up/down key, at some point, the value is not correctly rounded. Can you check if this is reproducible on your side?

 

Software
Top achievements
Rank 1
commented on 15 Apr 2025, 09:01 AM

The problem has something to do with the installed languages and keyboard layouts. I only had the the german keyboard layout and en language installed, when the problem appeared. Now I have installed the german language package and the problem disappeared.  
Dinko | Tech Support Engineer
Telerik team
commented on 15 Apr 2025, 01:20 PM

Thank you for the additional details. I'm still unable to reproduce this behavior. At this point, I am not aware of how the German keyboard layout is related to the reported behavior. My guess is that the German keyboard layout could have different values for specific keys.

What comes to my mind is trying to use NumericValidationBehavior to validate the input. This way, we could check if an invalid symbol is entered while typing.

Nevertheless, I am happy to hear that you have found a workaround for this behavior, and I hope that you can use it. If you have any other questions, feel free to contact us again in a new thread.

No answers yet. Maybe you can help?

Tags
NumericInput
Asked by
Software
Top achievements
Rank 1
Share this question
or