I would like to implement recurring events in DP Month. I currently use event left-click to call a bubble, and I edit events using a command from a right-click context menu to call a modal detailsview.
I am trying to implement the code from the recurring events tutorial (http://www.daypilot.org/calendar-tutorial-recurring-events.html) to call a modal aspx page. Is there any way to call the javascript for the modal UI helpers from a context menu command? Or maybe there's a simpler way to do this?
Comment posted by Dan Letecky [DayPilot] 13 years ago.
Just a few notes:
1. This method uses DayPilot.Modal instead of the ModalPopupHelper from the ASP.NET AJAX Extensions. The main advantage is that the modal content is in a separate page (both the .aspx declaration and the code behind handlers).
2. It might be possible to integrate the DetailsView with the recurrence helpers but you would probably have to use a separate submit button (not the "Submit" command from the DetailsView). The recurrence helper (see "Recurrence section" in Demo/Scheduler/RecurrentEventEdit.aspx) intercepts the form submission and encodes the data from the recurrence fields into a hidden field.
Please let me know if you have questions.
Comment posted by Dan Letecky [DayPilot] 13 years ago.
If you want to stay with the ModalPopupExtender it's possible to display it using $find() and show():
But still, it may take more work to integrate the recurrence helper.
Comment posted by J Nigon 13 years ago.
I think I have the DayPilot.Modal working with the DetailsView (by calling DetailsView.UpdateItem (or .InsertItem, depending on the currentMode) in a separate Submit button, as you suggested above. I'll work on checking and submitting the recurring event value next.
In the meantime, how do you wire up a calendar refresh after submitting/dismissing DayPilot.Modal? Do you have an API or tutorial where I can find this info?
Comment posted by J Nigon 13 years ago.
I am using the code as you specified above. My DPM control client name is dpm1, so I'm not sure why the calendar is not refreshing on modal close.