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

Events Stop Working With The Inclusion Of this.JsRuntime.Ejs().LoadLocaleData

Thread ID:

Created:

Updated:

Platform:

Replies:

149465 Nov 27,2019 06:45 AM UTC Nov 29,2019 09:46 AM UTC Blazor 1
loading
Tags: Grid
paul stanley
Asked On November 27, 2019 06:45 AM UTC

I wanted to format a currency column in my grid so I inserted this code:

    protected override void OnAfterRender(bool firstRender)
    {
           this.JsRuntime.Ejs().LoadLocaleData("en-GB.json").SetCulture("en-GB").SetCurrencyCode("GBP");
    }

After I did the  this grid events such as:
        public void RowSelectedHandler(RowSelectEventArgs<Job> args)
    {
        vm.selectedJob = (Job)args.Data;
    }

stopped working. 
Is this a bug to be sorted? 

Renjith Singh Rajendran [Syncfusion]
Replied On November 29, 2019 09:46 AM UTC

Hi Paul, 

Thanks for contacting Syncfusion support. 

We suggest you to call the “SetCurrencyCode” only at initial render by checking the condition for initial render. Please use the below code to overcome the problem you are facing. We have prepared a sample based on this scenario. Please download the sample from the link below, 

Please use the code below, 

 
    protected override void OnAfterRender(bool firstRender) 
    { 
        if (firstRender) 
        { 
            this.JsRuntime.Ejs().LoadLocaleData("wwwroot/en-GB.json").SetCulture("en-GB").SetCurrencyCode("GBP"); 
        } 
    } 


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