Primeng: FullCalendar

Created on 20 Jul 2018  路  15Comments  路  Source: primefaces/primeng

I'm submitting a ...

[x ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)

See this repo, contains everything, just ng serve on it. I tried stackblitz but it had other unrelated errors
https://github.com/pnemere/PrimeNgScheduleIssue

Current behavior
Can build fine, but when going to the page containing a <p-schedule> the calendar is not shown, and the console logs the following:

AppComponent.html:21 ERROR TypeError: e.addClass is not a function
    at t.initialRender (fullcalendar.min.js:10)
    at t.render (fullcalendar.min.js:10)
    at Schedule.push../node_modules/primeng/components/schedule/schedule.js.Schedule.initialize (schedule.js:222)
    at Schedule.push../node_modules/primeng/components/schedule/schedule.js.Schedule.ngAfterViewChecked (schedule.js:208)
    at callProviderLifecycles (core.js:9355)
    at callElementProvidersLifecycles (core.js:9326)
    at callLifecycleHooksChildrenFirst (core.js:9316)
    at checkAndUpdateView (core.js:10252)
    at callViewAction (core.js:10484)
    at execComponentViewsAction (core.js:10426)

Happens periodically if the page is running

Expected behavior
Calendar shows

Minimal reproduction of the problem with instructions
Pull down the linked github repo, npm install, ng serve and go to http://localhost:4200

What is the motivation / use case for changing the behavior?
Seems to be a bug

Please tell us about your environment:
ng serve on OSX

  • Angular version: 6.X

  • PrimeNG version: 6.X

  • Browser: Chrome on OSX

  • Language: Typescript

  • Node (for AoT issues): node --version = v10.6.0

Most helpful comment

So I have "primeng": "^6.1.5", and "fullcalendar": "^4.0.0-alpha". and onViewRender Event does not do nothing it does not even get triggered.. does anyone else have this problem ?

All 15 comments

Has any one fixed this ?, I have the same issue....

Same here. This happens for Angular 6 and PrimeNG Schedule component.

installing [email protected] solved issue for me for now.

Nice one, solved the problem for me too

If you had jQuery just because p-schedule, you may remove it as FullCalendar 4 does not need jQuery nor any PrimeNG component.

Excellent! I was also going through issue.. installing [email protected].. worked for me..! Thanks ton guys!

Perfect, I had the same issue, Thank you so much!!

[email protected] is not ready yet.

There is at least this bug with that makes migration to fullcalandar v4 impossible for the moment
https://github.com/fullcalendar/fullcalendar/issues/4221

How can we make primeng 6 work with fullcalendar 3.9.0?

So I have "primeng": "^6.1.5", and "fullcalendar": "^4.0.0-alpha". and onViewRender Event does not do nothing it does not even get triggered.. does anyone else have this problem ?

So I have "primeng": "^6.1.5", and "fullcalendar": "^4.0.0-alpha". and onViewRender Event does not do nothing it does not even get triggered.. does anyone else have this problem ?

I had the same issue but "primeng": "^7.0.0", "fullcalendar": "^4.0.0-alpha.2"

Please help. I am also getting the same issue as onViewRender event is not firing.
Primeng 7.0.0
fullcalendar: 4.0.0-alpha.2
angular: 7.1.4

@chhaviagrawal17 I upgraded both fullcalendar and fullcalendar-scheduler to 4.0.0-alpha.4 and also ensured the the angular.json file referred to the non minified versions of the fullcalendar and fullcalendar-scheduler js scripts. I am on PrimeNg 7.0.

Thanks... The issue is resolved..have to use p-fullcalendar and also had to change the way the event is fired as per the latest documentation.

How to write click event on event in full calendar ? .I am using "fullcalendar": "^4.0.0-alpha.4" and "primeng": "^7.0.5",

@edwinquaihoi I upgraded fullcalendar to "^4.0.0-alpha.4" and am using PrimeNG is "7.0.5" and angular 7.2.3 but onViewRender is not firing. Here

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Helayxa picture Helayxa  路  3Comments

watalberto picture watalberto  路  3Comments

mitosandov picture mitosandov  路  3Comments

Helayxa picture Helayxa  路  3Comments

gatapia picture gatapia  路  3Comments