Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141628 | Dec 21,2018 01:08 PM UTC | Dec 31,2018 05:57 AM UTC | ASP.NET Core - EJ 2 | 3 |
![]() |
Tags: Charts |
Hi
EJ2.Grid in ASP.Net Core with razor pages.
Suddenly my charts stop rendering and I get a strange error “Cannot
read property 'replace' of undefined”. I’ve spent hours on this and tracking
all changes that can have affected the charts. The problem is when culture files
are loaded, see below. If comment out the section below all charts render.
Any suggestions how to fix this?
”
function loadCultureFiles(name) {
var files = ['numbers.json', 'timeZoneNames.json', 'currencies.json', 'ca-gregorian.json'];
var loadCulture = function (prop) {
var val, ajax;
ajax = new ej.base.Ajax(location.origin + '/../../scripts/cldr-data/main/' + name + '/' + files[prop], 'GET', false);
ajax.onSuccess = function (value) {
val = value;
ej.base.loadCldr(JSON.parse(val));
};
ajax.failureHandler = function (value) {
console.log(value)
}
ajax.send();
};
for (var prop = 0; prop < files.length; prop++) {
loadCulture(prop);
}
} |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.