Error when change language

Hey Guys,

I have a strange problem in my Syncfusion DateRangePicker (v18.2.0.56).

When i open the DateRangePicker with default languaga German or English everything is fine, but when i change my applications language to french, i will get an Error.
The problem shows up, that the DateRangePicker will not show up and the element is not clickable anymore.

Code example and error message are below:

ViewData[ViewDataKeys.DatePickerId] = "dateRangePicker";
var dateFormat = DateTimeFormats.DefaultDateFormatDayFirstDotted;

<div class="col-sm-8 col-md-6 col-lg-6">
@*Remove only 6 days because one day will be added at readout function to get straight one week*@
@Html.EJS().DateRangePicker(ViewData[ViewDataKeys.DatePickerId] as string).Format(dateFormat).FirstDayOfWeek(1)
.WeekNumber().StartDate(DateTime.Today.AddDays(-6)).EndDate(DateTime.Today).ShowClearButton(false)
.Created("onDateRangePickerCreated").Change("onDateRangePickerChange").Select("onDateRangePickerSelect")
.Close("onDateRangePickerClose").Render()
</div>

<script>
function onDateRangePickerSelect(args) {
}

function onDateRangePickerChange(args) {
addGridParams(true);
}

function onDateRangePickerClose(args) {
//prevent closing
//args.cancel = true;
}

function onDateRangePickerCreated(args) {
//show by default
var dp = document.getElementById("@(ViewData[ViewDataKeys.DatePickerId] as string)").ej2_instances[0];
dp.show();
}
</script>



Thank you already for your help and kind regards

Dominic


5 Replies 1 reply marked as answer

SP Sureshkumar P Syncfusion Team September 9, 2020 05:03 PM UTC

Hi Dominic, 
 
Greetings from Syncfusion support. 
 
The reported issue is our known issue in the 18.2.56 version. We have resolved the issue in our latest 18.2.57 version. Please upgrade the Syncfusion package version to resolve the issue. 
 
 
Regards, 
Sureshkumar P 


Marked as answer

DB Dominic Buerki September 10, 2020 05:06 AM UTC

Hello Sureshkumar,

Then i havn't seen this issue, i'm sorry.
Ty for your reply and i will try it again with the new version.

Regards,
Dominic


SP Sureshkumar P Syncfusion Team September 10, 2020 07:50 AM UTC

Hi Dominic, 
 
Thanks for your update. 
 
Regards, 
Sureshkumar P 



DB Dominic Buerki September 14, 2020 07:44 AM UTC

So i Updated the Syncfusion Version to 18.2.57 and now everything works like charm, after i cleared the cache.

Thanks for your effort guys.
Best regards.
Dominic


PO Prince Oliver Syncfusion Team September 15, 2020 06:25 AM UTC

Hi Dominic, 
 
Most Welcome. We are glad that the issue is resolved in your end. 
 
Regards, 
Prince 


Loader.
Up arrow icon