search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Calendar Control not refreshing

Asked by Kristine
15 days ago.

Has anyone struck this? I have a ASP WebForm project with C# in the backend.
Even through I refresh the control as below and as per the Tutorial its not refreshing and showing new events. Drag and resize work fine with existing events.

The only way to get new events to show is to use the Browser Refresh (F5) and reload the page. Even calling Response.redirect from code in behind won't reload the Calendar correctly.

I am refreshing the control with (The prismRespository is a interface class for a SQL database)

DayPilotCalendarWeek.DataSource = prismRepository.GetResourceBookedTech(Monday, EndDate, UserId);
DayPilotCalendarWeek.DataBind();
DayPilotCalendarWeek.Update();

Any clues greatly appreciated.

Answer posted by Dan Letecky [DayPilot]
14 days ago.

Unfortunately, it's not clear from your example what could be wrong. I recommend starting with a working project from one of the tutorials, e.g.

https://code.daypilot.org/18967/event-calendar-with-day-week-month-views-for-asp-net-webfor
https://code.daypilot.org/65101/timetable-tutorial-asp-net-c-vb-net
https://code.daypilot.org/55027/asp.net-doctor-appointment-scheduling

The Response.Redirect() call doesn't work in CallBack events (only in PostBacks) - that's a limitation of the ASP.NET callback mechanism.

New Reply
This reply is
Your name (optional):