|
ej.base.L10n.load({
'de': {
"grid": {
"SortAtoZ": "Sortieren Sie von A bis Z.",
"SortZtoA": "Sortieren Sie Z nach A.",
"SortByNewest": "Nach Neuestem sortieren",
"SortByOldest": "Sortieren nach Älteste",
"SortLargestToSmallest": "Groß bis klein sortieren",
"SortSmallestToLargest": "Klein bis groß sortieren",
},
}
}); |
Hello,
The supplied Sample is not working for data filtering. The filter window option apears but when you try to acces any data filter options the error "Uncaught TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>)"
apears in console.
|
function loadCultureFiles(name) {
var files = ['ca-gregorian.json', 'numbers.json', 'timeZoneNames.json'];
if (name === 'de') {
files.push('numberingSystems.json');
}
var loader = ej.base.loadCldr;
var loadCulture = function (prop) {
var val, ajax;
if (name === 'de' && prop === files.length - 1) {
ajax = new ej.base.Ajax(location.origin + location.pathname + '/../../scripts/cldr-data/supplemental/' + files[prop], 'GET', false);
} else {
ajax = new ej.base.Ajax(location.origin + location.pathname + '/../../scripts/cldr-data/main/' + name + '/' + files[prop], 'GET', false);
}
ajax.onSuccess = function (value) {
val = value;
};
ajax.send();
loader(JSON.parse(val));
};
for (var prop = 0; prop < files.length; prop++) {
loadCulture(prop);
}
} |