Add currency symbol in grid

I want a column to have a '$' icon in front of a numerical value. Is there a currency type for the grid?

1 Reply

VA Venkatesh Ayothi Raman Syncfusion Team March 8, 2017 11:54 AM UTC

Hi Zack, 
Thanks for contacting Syncfusion support. 
We have built-in support for currency formatting in column, so we have achieved your requirement by setting the format property in column. Please refer to the following code example and Help document for more information, 
Code example
<h2>Syncfusion Javascript Angular 2 Component</h2> 
<div > 
<ej-grid #grid  [dataSource]="gridData1" [allowPaging]="true"> 
    <e-columns> 
        . . . 
        <e-column field="Freight" headerText="Freight" width="30" format="{0:C}" textAlign="right"></e-column> 
         . . . 
    </e-columns> 
</ej-grid> 
</div> 


Regards, 
Venkatesh Ayothiraman. 


Loader.
Up arrow icon