We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How can I display numbers with comma while typing?

Hi.


I installed yesterday. I'm checking various things and have one question.


I checked that numbers are displayed with comma. But after finising typing.

Typing : 12345

After typing : 12, 345


How can I display numbers with comma while typing like this ?

Typing: 12,345

After typing 12,345


I tested with sfDataGrid.


Thanks.



4 Replies

VS Vijayarasan Sivanandham Syncfusion Team January 3, 2023 06:19 PM UTC

Hi Sangyong Lee,

We are analyzing your requirement of "display numbers with comma while editing in SfDataGrid" and update you with further details on Jan 05, 2023.

Regards,
Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team January 4, 2023 02:11 PM UTC

Sangyong Lee,

We have checked the possibility of achieving your requirement. We are using the SfNumericTextBox as an editor control in GridNumericColumn. By default, the separators get updated once we have committed the entered value. We have checked the same with the framework control, and it is also behaving the same. So, there is no possibility of achieving your requirement.



SL Sangyong Lee replied to Vijayarasan Sivanandham January 6, 2023 07:16 AM UTC

Hi.


I have tested that commas are displayed after pressing enter key.


Here's what I've checked so far:

Press  12345 then show 12345 in screen. And press enter, it show 12,345 in screen.


But the way I want is.. press 12345 then shows 12,345 in screen immediately. (without enter)


I've searched how to display when pressing only digits without enter.

How can I make a comma appear while entering numbers without entering?






VS Vijayarasan Sivanandham Syncfusion Team January 6, 2023 03:20 PM UTC

Sangyong Lee

As we mentioned earlier, we only receive the input value when it is submitted by pressing the enter key or navigating with the tab key. Without this action, we do not receive any notification that the input is complete or not. Therefore, it is not possible to fulfill your request to “Add a separator without committing the input values”.


Loader.
Live Chat Icon For mobile
Up arrow icon