I am using jjquery fullCalendar in my asp.net website. My events come in from .ashx fille and get returned as json.
I am trying to add events from the client side without refreshing the whole server, In facte the event is ssuccefuly added to My SQL server Data Base. and it must to refresh all the page to dispal the added event.
I use page.aspx to add my event like that:
function selectDate(start, end, allDay, jsEvent) {
var top = (screen.height - 600) / 2;
var left = (screen.width - 800) / 2;
var ress = jsEvent.target;
debugger;
// window.open("AddingAppointmentV3.aspx?DateTimeBegin" + start.format("dd/MM/yyyy hh:mm") + "&DateTimeEnd=" + end.format("dd/MM/yyyy hh:mm") + "", "AddingAppointment", "toolbar=0, status=0,directories=0,menubar=0,location=0,scrollbars=0, resizable=1, width=800, height=600,left=" + left + ",top=" + top + "");
window.open("AddingAppointmentV3.aspx?DateTimeBegin=" + start.format('dd/MM/yyyy HH:mm') + "&DateTimeEnd=" + end.format('dd/MM/yyyy HH:mm') + "", "AddingAppointment", "toolbar=0, status=0,directories=0,menubar=0,location=0,scrollbars=0, resizable=1, width=800, height=600,left=" + left + ",top=" + top + "");
return false;
}
and the calendar is defined in another aspx page.
the only way i know how to refresh the UI to show this new event is to call refetchevents (but this reloads everything for the month back from the server.
Is there anyway to refresh calendar after adding a new event from my pop up ?
Is there a function like Rebind(in telerik) that refrech just the callendar?
Thanks.
Imad.