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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column setting for rounding numbers and placing decimal points

Thread ID:

Created:

Updated:

Platform:

Replies:

144594 May 14,2019 04:31 AM UTC Jul 18,2019 09:31 AM UTC Angular - EJ 2 3
loading
Tags: Grid
Neo
Asked On May 14, 2019 04:31 AM UTC

Hi All,

When we using the column settings for customize data type and input, I faced following requirements to be achieved,

1. How to hide up & down arrows when use of 'numericedit' type.
2. Display always 2 decimal points without thousand separates. (Rounding with 2 decimal points , Type: number editType: 'stringedit')
3. Display always 2 decimal points without thousand separates. (Rounding with 2 decimal points , Type: string editType: 'stringedit', Some time data load as text. This formatting should happen if found numeric value)

Thank you.

Hariharan J V [Syncfusion]
Replied On May 15, 2019 08:52 AM UTC

Hi Neo,

Query 1:

We suggest you to use `showSpinButton` property to achieve your requirement. Please refer the below code snippets.

this.numEditParams ={ params:{decimals:3, format:'n', showSpinButton: false}};

Query 2 & 3:

We suggest you to use grid cell edit template feature to acheive your requirement. Please refer the below sample and documentation link.

Sample: https://stackblitz.com/edit/angular-yjegvk-oyq4xj?file=app.component.ts
Documentation: https://ej2.syncfusion.com/angular/documentation/grid/edit/?no-cache=1#cell-edit-template

Regards,
Hariharan

Neo
Replied On July 17, 2019 08:50 AM UTC

Hi,

My requirement has been achieved. Thank you for the support.

Hariharan J V [Syncfusion]
Replied On July 18, 2019 09:31 AM UTC

Hi Neo,

Thanks for your update.

We are happy to hear that your requirement has been achieved.

Regards,
Hariharan

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon