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

Refresh DPC onClose of jQuery Dialog

Asked by Ozzie
8 years ago.

We have DPC acting pretty much in the same as MS Outlook would, with all functionality working as expected apart from when creating new / updating events we use a dedicated .aspx page and jQuery modal Dialog.

Upon hitting the save / update button that data is posted as expected to the database but how then could we force a refresh of DPC on the parent page when the modal dialog closes?

We are not using your method of modal dialog as we needed much more control given the amount of data being added / updated.

We want to try and avoid having a full page refresh as there are other control on this page that need to remain as they are and a full page refresh would change them.

Ihave looked at the following but it did not work:

In the head section of the jQuery dialog I added


But this does not work or fire the refresh on the parent for DPC1

Answer posted by Dan Letecky [DayPilot]
7 years ago.

You can request a refresh by calling


This will invoke Command event on the server side. You need to add a handler for Command event and reload the events there:

    protected void DayPilotCalendar1_Command(object sender, CommandEventArgs e)
        switch (e.Command)
            case "refresh":
                DayPilotCalendar1.DataSource = loadEventData();
This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.