You need to sign in to do that
Don't have an account?
balram kamboj 10
Decimal-To-Percent in lightning Datatable
Hi all,
Having a field 'Increment' of type Number(15, 0) and storing 1.9 to it (although it will show 2 at layout , but when we fetch this field its showing 1.9)
Fetching and displaying the value 1.9 in standard datatable under "Increment" column.
But my datatable showing value as 1,9% (comma instead of decimal) rather than 1.9% (correct decimal).
Any suggestions , how can i achieve this ?
Thanks
B
Having a field 'Increment' of type Number(15, 0) and storing 1.9 to it (although it will show 2 at layout , but when we fetch this field its showing 1.9)
Fetching and displaying the value 1.9 in standard datatable under "Increment" column.
{ label: 'Increment', fieldName: 'Increment__c', type: 'percent',typeAttributes: { minimumFractionDigits: 2, maximumFractionDigits: 2 }}
But my datatable showing value as 1,9% (comma instead of decimal) rather than 1.9% (correct decimal).
Any suggestions , how can i achieve this ?
Thanks
B
Please follow the below link:-
https://salesforce.stackexchange.com/questions/306525/how-to-show-values-with-decimals-in-lwc-standard-datatable
Please mark it as Best Answer if it helps you.
Thanks & Regards
Suraj Tripathi
Hi Suraj
Thanks for your reply.
There is nothing related to my question in the link you mentioned.
Is there any other solution?
Thanks
B