Culture display on grid in Balzor Wasm

Hello

I am setting the culture in my blazor wasm project like this:

culture = new CultureInfo("en-AU");

CultureInfo.DefaultThreadCurrentCulture = culture;

CultureInfo.DefaultThreadCurrentUICulture = culture;

The currency in the sf grid is being dispayed as "AUD" rather than "$" (see below).  Any ideas?




3 Replies

MS Monisha Saravanan Syncfusion Team February 7, 2022 02:00 PM UTC

Hi Ditchford, 

Greetings from Syncfusion support. 

We suggest you to achieve your requirement by using the culture currency symbol as (“$”). Kindly refer the attached code snippet for your reference. 

CultureInfo culture = new CultureInfo("en-AU"); 
culture.NumberFormat.CurrencySymbol = "$"; 
CultureInfo.DefaultThreadCurrentCulture = culture; 
CultureInfo.DefaultThreadCurrentUICulture = culture; 

Kindly get back to us if we misunderstood your query or if you have further queries. 

Regards, 
Monisha  



DI Ditchford February 7, 2022 02:09 PM UTC

Hey  Monisha

Ah, excellent...thanks.  I didn't know that was possible.


Regards



VN Vignesh Natarajan Syncfusion Team February 8, 2022 05:15 AM UTC

Hi Richard,  

Thanks for the update.  

We are glad to hear that you have resolved your query using our solution.  

Please get back to us if you have further queries.  

Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon