Declined
Last Updated: 29 Aug 2022 08:42 by ADMIN
Stas
Created on: 08 Aug 2022 13:04
Category: UI for Blazor
Type: Bug Report
0
NumericTextBox: issue on editing an existing value

I have found an issue with editing currency values.

Steps to reproduce:

1. Fill up a value 56.55

2. Try to click between 55

3. Cursor is at the end

 

The same issue about clicking between 56, the cursor will be before the dot.

5 comments
ADMIN
Svetoslav Dimitrov
Posted on: 29 Aug 2022 08:42

Hello Stas,

Thank you for the runnable snippet, that helped me understand the scenario. Let me provide some additional information:

When you have defined a custom formatting for the input with the Format parameter there are one or more symbols that are not included in the actual value of the input. If the format is currency there will be a currency sign in front of the numeric value. The combination of the currency sign and the numeric value can be looked at as a placeholder. On input click, the currency sign is removed which causes the inconsistency of the cursor position. In that sense, this inconsistency is an expected tradeoff for the ability to format the value of the numeric textbox. 

That being said, I have to mark this Bug Report as "Declined".

Regards,
Svetoslav Dimitrov
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Stas
Posted on: 22 Aug 2022 10:05

Try to use this code snippet in Telerik REPL.

Steps:

1. fill up with value 56.78

2. click on another area to lose focus

3. click between 5 and 6, the cursor appears after 6

the same issue about clicking between 7 and 8.

 

<TelerikNumericTextBox Decimals="2" Format="C" @bind-Value="price" Arrows="false"></TelerikNumericTextBox>
@code{
    double? price = null;
}
ADMIN
Svetoslav Dimitrov
Posted on: 22 Aug 2022 05:54

Hello Stas,

I have tested the scenario you are reporting in our online demos and I was not able to reproduce the problematic behavior. Can you send me a runnable application where this issue is reproducible so that we can further investigate? 

Regards,
Svetoslav Dimitrov
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Stas
Posted on: 15 Aug 2022 09:39
I am not about separator, I mean the cursor appears in the wrong place. Not where you click, a few symbols later.
ADMIN
Svetoslav Dimitrov
Posted on: 15 Aug 2022 08:48

Hello Stas,

The dot is a decimal separator that comes from the culture of the client's computer. This separator is not editable, only the 56 and 55 segments are editable. Could you provide some information on why would you like to edit the decimal dot separator? 

Regards,
Svetoslav Dimitrov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.