Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I can delete an event, but the event is not gone, only after f5

I try it like this:

C#
eventClick: function (calEvent, jsEvent, view) {



    $('#btnPopupDelete').click(function () {


        var id = calEvent.id;
        $('#calendar').fullCalendar('refetchEvents');


        DeleteEvent(id)

        $('#popupEventForm').hide();



    });


but then after two times delete the event is gone. Thank you
Posted
Comments
CHill60 29-Jan-15 11:00am    
Try putting window.location.reload(); at the end of the click function?
[no name] 29-Jan-15 11:03am    
Thank you. but the only problem is that it doenst stay on the month of that year, it returns to January
CHill60 29-Jan-15 11:08am    
Are you checking for postback in the page load?
[no name] 29-Jan-15 12:01pm    
I am using asp.net mvc5

1 solution

I cannot see you're implementation of the DeleteEvent function. But I would guess that you should first delete the event and then call refetchEvents.

Put refetchEvents at the and of the other function calls.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900