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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Add currency symbol in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

129256 Mar 7,2017 03:23 PM UTC Mar 8,2017 11:54 AM UTC Angular 1
loading
Tags: ejGrid
Zack
Asked On March 7, 2017 03:23 PM UTC

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

Venkatesh Ayothi Raman [Syncfusion]
Replied On 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. 


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.

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

;