Format numbers on input

0 Answers 248 Views
Grid
Rijad
Top achievements
Rank 1
Rijad asked on 23 Aug 2023, 10:05 AM | edited on 23 Aug 2023, 10:06 AM

Hello,

I am trying to automatically format number on input. I am using kendo grid with asp .net core tag helper. The behaviour which I am trying to accomplish is as same as the autonumeric.js library. I want to use "." as thounsands separator and "," as decimal separator. For example, number "1234" is formatted as "1.243". The separator dot is added on input.

Any kind of help is appreciated.

Anton Mironov
Telerik team
commented on 28 Aug 2023, 06:26 AM

Hi Rijad,

Thank you for the details provided.

In order to achieve the desired behavior, I would recommend changing the culture in your application.

The following article provides the needed information for changing the culture:

I hope this information helps.


Kind Regards,
Anton Mironov

 

 

Rijad
Top achievements
Rank 1
commented on 28 Aug 2023, 06:34 AM

Thank you Anton, 

I have already changed the culture. The display of the number is correct (1.234,00), but when I enter the "in cell" edit mode, I would like that the separator stays there. For example when I am entering the number 1234, after pressing on the number 4 key, the "." separator should be added immediately. Is there a way to achieve this?

 

Kind regards,

Rijad

Anton Mironov
Telerik team
commented on 28 Aug 2023, 06:41 AM

Hi Rijad,

Thank you for the kind words and additional details provided.

The fastest route to getting you up and running is if you could provide a runnable, isolated, sample project. Examining this project will let us replicate the issue locally and further troubleshoot it. 

A dojo or a REPL example will be enough as well. Once I have the issue represented on my side, will try my best to resolve it.

Looking forward to hearing back from you.


Best Regards,
Anton Mironov

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Rijad
Top achievements
Rank 1
Share this question
or