We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ejs-calendar having problem with Globalisation for latest version.

Thread ID:

Created:

Updated:

Platform:

Replies:

150795 Jan 20,2020 12:57 PM UTC Jan 23,2020 06:58 AM UTC Angular - EJ 2 6
loading
Tags: Schedule
Parthkumar Kakadiya
Asked On January 20, 2020 12:57 PM UTC

Hi,

I am working on Angular 8 Application. I having strange problem. 

Having below version of calendar and schedule.


=> Globalisation working fine with this version but not working with latest version of angular calendar. Getting below error.

ERROR TypeError: Cannot convert undefined or null to object
    at Function.keys ()
    at FormBase.getCultureValues (ej2-calendars.es2015.js:259)
    at FormBase.createContentHeader (ej2-calendars.es2015.js:291)
    at FormBase.createContent (ej2-calendars.es2015.js:243)
    at FormBase.createContent (ej2-calendars.es2015.js:1973)
    at FormBase.render (ej2-calendars.es2015.js:139)
    at FormBase.render (ej2-calendars.es2015.js:1882)
    at FormBase.disabledDates (ej2-calendars.es2015.js:4084)
    at FormBase.updateInput (ej2-calendars.es2015.js:2932)
    at FormBase.onPropertyChanged (ej2-calendars.es2015.js:11915)


I have encounter the problem also. Problem is path for getting language data having problem.
with version 17.2.49 it's working fine.

Now If I upgrade the schedule with 17.3.28 . As i want to use popupClose which is supported with the ejs-schedule version 17.3.28.


Please try to find some solution to this problem. I have attached the component files with attachment. 

Regards,
Parth

Attachment: calendar_5ef5a23a.zip

Vengatesh Maniraj [Syncfusion]
Replied On January 21, 2020 07:22 AM UTC

Hi Parthkumar, 

Greetings from Syncfusion Support. 

We have prepared a Scheduler sample in Angular cli-8 version with “de” as locale property which is working properly at our end and the sample can be downloaded from the following link, 

 
And for further reference kindly refer the below UG link, 


Kindly try the above sample, if you have any concerns please revert us back for further assistance. 

Regards, 
Vengatesh 


Parthkumar Kakadiya
Replied On January 21, 2020 09:08 AM UTC

Hi Vengatesh,

Thanks a lot for your solution.

The Globalization for ejs-schedule is working fine for any version.

My problem is if i use angular-schedule version higher than 17.2.49 than ejs-datetimepicker which is part of ej2-angular-calendar having problem with globalization.

here is my module version info.



with this combination schedule globalization working fine like: 




but datetimepicker globalization having problem     like:





so can you please provide example for globalization of datetimepicker and schedule with latest version or compatible version.


Regards,
Parth 

Parthkumar Kakadiya
Replied On January 22, 2020 11:25 AM UTC

Hi,

Can somebody update me with my problem please.

It is really critical problem.

Thanks.

Regards,
Parth

Hareesh Balasubramanian [Syncfusion]
Replied On January 22, 2020 03:42 PM UTC

Hi Parthkumar, 

Sorry for the delay post. 

Based on your requirement, we have prepared a sample using Scheduler and Calendar components with locale as “de” and it is working properly at our end. And the sample can be downloaded from the following link, 

<ejs-schedule width='100%' locale='de' height='650px' (popupClose)="onPopupClose($event)"> 
    <ng-template #editorTemplate let-data> 
        <table *ngIf="data != undefined" class="custom-event-editor" width="100%" cellpadding="5"> 
            <tbody> 
                <tr> 
                    <td class="e-textlabel">Summary</td> 
                    <td colspan="4"> 
                        <input id="Subject" class="e-field e-input" type="text" value="{{data.Subject}}" name="Subject" 
                            style="width: 100%" /> 
                    </td> 
                </tr> 
                <tr> 
                    <td class="e-textlabel">From</td> 
                    <td colspan="4"> 
                        <ejs-datetimepicker locale='de' id="StartTime" class="e-field" data-name="StartTime" 
                            format="M/dd/yy h:mm a" [value]="dateParser(data.startTime || data.StartTime)"> 
                        </ejs-datetimepicker> 
                    </td> 
                </tr> 
                <tr> 
                    <td class="e-textlabel">To</td> 
                    <td colspan="4"> 
                        <ejs-datetimepicker locale='de' id="EndTime" class="e-field" data-name="EndTime" 
                            format="M/dd/yy h:mm a" [value]='dateParser(data.endTime || data.EndTime)'> 
                        </ejs-datetimepicker> 
                    </td> 
                </tr> 
                <tr> 
                    <td class="e-textlabel">Reason</td> 
                    <td colspan="4"> 
                        <textarea id="Description" class="e-field e-input" name="Description" rows="3" cols="50" 
                            value="{{data.Description}}" 
                            style="width: 100%; height: 60px !important; resize: vertical"></textarea> 
                    </td> 
                </tr> 
            </tbody> 
        </table> 
    </ng-template> 
</ejs-schedule> 

Kindly try the above sample, if you have any concerns please revert us back for further assistance. 

Regards, 
Hareesh 


Parthkumar Kakadiya
Replied On January 22, 2020 03:55 PM UTC

Hi Hareesh,

Thanks a lot.. 

Your solution works now for my application. Thanks a lot for your help. You guys doing great work. Keep Doing.

Have a nice day.

Regards,
Parth

Vengatesh Maniraj [Syncfusion]
Replied On January 23, 2020 06:58 AM UTC

Hi Parth, 

Thanks for the update. 

We are glad that your requirement has fulfilled. 

Regards, 
Vengatesh 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon