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

Grid globalization

Thread ID:

Created:

Updated:

Platform:

Replies:

149195 Nov 18,2019 12:26 PM UTC Nov 20,2019 05:25 AM UTC Blazor 3
loading
Tags: Grid
Costa
Asked On November 18, 2019 12:27 PM UTC

Hi. Please provide a working example of grid globalization for the Blazor Server App. Examples from documentation do not work. Syncfusion.EJ2.Blazor 17.3.0.27 .NET Core 3.1.

Renjith Singh Rajendran [Syncfusion]
Replied On November 19, 2019 06:42 AM UTC

Hi Costa, 

We are sorry for the inconvenience caused. 

We suggest you to ensure to add the below highlighted namespace in your application. We have missed this namespace in our documentation. We will update these changes in our documentation and will refresh online. 

 
@using Microsoft.JSInterop 
@using Syncfusion.EJ2.Blazor 
@using Syncfusion.EJ2.Blazor.Grids 
 
<EjsGrid DataSource="@Orders" ...> 
    ... 
</EjsGrid> 
 
@code{ 
    [Inject] 
    IJSRuntime JsRuntime { get; set; } 
    ... 
   protected override void OnAfterRender(bool firstRender) 
    { 
        this.JsRuntime.Ejs().LoadLocaleData("wwwroot/locale.json").SetCulture("de"); 
    } 
} 


Note : And also ensure to provide the proper path for the “locale.json” file. In the above code, we have contained a “locale.json” file inside the “wwwroot” folder. 

We have prepared a sample based on this, please download the sample from the link below, 
 
If you are still facing difficulties, we need more details to further proceed on this, kindly share with us the following details for better assistance. 
  1. Share the details of the problem or script error you are facing.
  2. Share a video demo showing the problem you are facing.
  3. Share the type of application you are using. (Blazor WebAssembly Client or Blazor Server Side)

The provided information will help us analyze the problem, and provide you a solution as early as possible. 

Regards, 
Renjith Singh Rajendran. 


Costa
Replied On November 19, 2019 09:13 AM UTC

Thanks. Looks like I haven't read the documentation carefully. Everything works as it should.

Renjith Singh Rajendran [Syncfusion]
Replied On November 20, 2019 05:25 AM UTC

Hi Costa, 

Thanks for your update. 

We are happy to hear that the provided solution helped to achieve your requirement. 

Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran. 


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