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

DayPilotMonth1 Control doesn't load the new created events

Asked by Ali
14 years ago.

Hi All,

I hope some to help me on this. I created 2 pages in ASP .NET. One that contains the DayPilotMonth control to show all the events and another one to add new events to my calander via text boxes. (Calander Page and Booking Page)

my "Schedule" table contains the following field and i'm linking the control to this table:

schedule_id, schedule_from, schedule_to,reason,approved,finished,place

The user should be be able to add new events to the database using the booking page and to see the event details in the calander. However, whenever a new event is created (new record in the database), the calander control doesn't get refreshed and updated with the new events. I don't know why. Can someone help me on this?

Thank you very much in advance

Comment posted by Dan Letecky
14 years ago.
It depends on how you call the Booking page from the Calendar page (is it a popup, or just a link?).

1. If it's a popup, you can refresh the Calendar page using window.opener JavaScript:

2. If it's a plain link, you will have to refresh manually (a button that calls dpm.refreshCallBack() or a PostBack button).

3. You could also use ModalPopupExtender from Ajax Control Toolkit to open the new event dialog on the same page. This is demonstrated in the DemoSQL application (included in DayPilot package).
This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.