Issue with fullcalendar functionality when i display the event like daily,weekly and monthly

jquery

#1

Hello,

I have issue with display the calendar event in daily, weekly and monthly according to user requirement.

I used the : https://fullcalendar.io/

This is our database structure : http://prntscr.com/i4rtwi

In Database "repeating_options" fields are there it means :
--> 0 : Daily event
--> 1 : Weekly event
--> 2 : Monthly event

We have only date field it means start the event from this particular date and display the event infinite year or you can consider the end date like (31-12-2050).

When we implement using this code :

 $('#calendar').fullCalendar({
    header: {
        left: 'agendaDay,agendaWeek,month',
        center: '',
        right: 'prev,title,next'
    },
    locale : lang_value,
    eventClick: function (event, jsEvent, view) {
       view_appointment_info(event.id);
    },
    eventRender: function(event, element, view){
        return (event.ranges.filter(function(range){
            return (event.start.isBefore(range.end) &&
                    event.end.isAfter(range.start));
        }).length)>0;
    },
});

--> When i use the "eventRender" then daily and weekly event working fine but not working monthly. Monthly event display daily bases instead of display once in month.

So would you please suggest me how we can solve this issue?

Thanks


closed #2

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.