Hi community, I cannot use the datepicker component cause the error below.
I tried to load the locale "it" files but I got the same error.
Anybody have a complete example and maybe the Italian json files for the datepicker?
This is a live example: https://preproduzione.zenshare.it/biblioteca/demotreeview.php
Kind regards
ej2.min.js?a=13.6.00:10 Uncaught TypeError: Cannot convert undefined or null to object
at Function.keys ()
at t.getCultureValues (ej2.min.js?a=13.6.00:10)
at t.createContentHeader (ej2.min.js?a=13.6.00:10)
at t.createContent (ej2.min.js?a=13.6.00:10)
at t.createContent (ej2.min.js?a=13.6.00:10)
at t.render (ej2.min.js?a=13.6.00:10)
at t.render (ej2.min.js?a=13.6.00:10)
at t.show (ej2.min.js?a=13.6.00:10)
at t.dateIconHandler (ej2.min.js?a=13.6.00:10)
Francesco
|
loadCldr(
require('cldr-data/supplemental/numberingSystems.json'),
require('cldr-data/main/he/ca-gregorian.json'),
require('cldr-data/main/he/numbers.json')
require('cldr-data/main/he/timeZoneNames.json')
); |
Thanks very much Deepak Ramakrishnan, not I have another error: "Uncaught ReferenceError: loadCldr is not defined".
You can check at https://preproduzione.zenshare.it/biblioteca/demotreeview.php
Can you help me?
|
//Load the loadCldr from ej2-base
import { loadCldr } from '@syncfusion/ej2-base';
declare var require: any; |
Hi Berly, thanks for the answer.
Unfortunately we use another way, we include the big js file for syncfusion, and I cannot use loadCldr.
I use this method: https://preproduzione.zenshare.it/biblioteca/demotreeview.php (watch file main_demo.js)
This works for grid, treeview but not for datepicker. I suppose I need to include some other culture file.
Can you help me?
Bye