New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.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);
}
} |