BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
Hi all, im using Date Range Picker feature but after some update i have an error that prevent to open the calendar popup. i tried everything i found but nothing works
this is my component and everytime i press the calendat icon i receive this error on console.
Hi Fernando,
Greetings from Syncfusion support.
We are validating your reported query. We will update you with further details on or before Sep 26, 2022.
Regards,
Buvana S
Hi Fernando,
Based on your shared information with error details, we suspect that your application not loading the culture JSON files. Which is the reason the replicated issue is occur.
Please find the code example:
import { DateRangePickerComponent } from '@syncfusion/ej2-react-calendars'; import * as React from "react"; import './App.css'; import { loadCldr, L10n } from "@syncfusion/ej2-base";
import * as gregorian from 'cldr-data/main/de/ca-gregorian.json'; import * as numbers from 'cldr-data/main/de/numbers.json'; import * as timeZoneNames from 'cldr-data/main/de/timeZoneNames.json'; import * as numberingSystems from 'cldr-data/supplemental/numberingSystems.json'; import * as weekData from 'cldr-data/supplemental/weekData.json';// To load the culture based first day of week
loadCldr(numberingSystems, gregorian, numbers, timeZoneNames, weekData); L10n.load({ 'de': { 'daterangepicker': { applyText: 'Sich bewerben', cancelText: 'Stornieren', customRange: 'benutzerdefinierten Bereich', days: 'Tage', endLabel: 'Wählen Sie Enddatum', placeholder: 'Wählen Sie einen Bereich aus', selectedDays: 'Ausgewählte Tage', startLabel: 'Wählen Sie Startdatum' } } });
function App() { return ( <div className="App"> <DateRangePickerComponent id="daterangepicker" locale='de'/> </div> ); }
export default App;
|
To know more about globalization, please refer to the documentation: https://ej2.syncfusion.com/react/documentation/daterangepicker/globalization/
If still you have faced the issue, then please replicate the reported issue in the sample and revert us with details of the issue replicated replication procedure. These details will help us to provide an exact solution as earlier as possible.
If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.
Udhaya Kumar D