Grid with floating numbers changes decimal point during editing

Hi support,

I'm using a number column, formatted with "N2".

My culture is globally set to "de" with

ej.base.setCulture('de');

so the number is displayed with a decimal comma as a decimal point.

So far so good.

But when I double-click to enter edit mode (inline), the format of the number changes to a decimal point.

If I save and the edit mode is finished, the decimal comma appears again as it should be.

The column is defined as:

{ field: 'priceperday', headerText: 'Price per day', width: 80, textAlign: 'Left', allowEditing: true, format: 'N2'},

What can I do?

Regards,

Stephan



3 Replies

PS Pavithra Subramaniyam Syncfusion Team October 22, 2021 11:48 AM UTC

Hi Stephan, 

Thanks for contacting Syncfusion support. 

You can apply the ‘de’ culture format while editing by setting the ‘column.editType’ property as ‘numericEdit’ for the number columns. Please refer to the below code example, documentation and sample link for more information. 

 
{ field: 'Freight', headerText: 'Freight', textAlign: 'Right'editType: 'numericedit', width: 140, format: 'N2', validationRules: { required: true}} 



Sample               : https://stackblitz.com/edit/8okhsl?file=index.ts 

Please get back to us if you need any further assistance on this. 

Regards, 
Pavithra S 



SS Stephan Schrade October 25, 2021 07:07 AM UTC

Many thanks.

This works!

Regards,

Stephan



PS Pavithra Subramaniyam Syncfusion Team October 25, 2021 12:41 PM UTC

Hi Stephan,  

We are happy to hear that the provided solution works! Please get back to us if you need any further assistance on this. We are always happy to assist you!  

Regards,  
Pavithra S 


Loader.
Up arrow icon