This question is locked. New answers and comments are not allowed.
I want to show a ChildWindow with warnings when the user is drag&drop an appointment if there are resources (teachers) bound to it.
Example: 'You have to inform the teacher about changing the appointment. Do you really want that? Yes/No'
If the user confirm that, it will change the appointment, otherwise will cancel it.
Where can I place the ChildWindow in the event process?
During D&D the following events are fired:
- CanDrop: if the return value is false, it will not drag&drop
- Drop
- AppointmentEditing
- AppointmentSaving: if set e.Cancel = true; it will not save the appointment
- AppointmentEdited
- DragDropCompleted
I tried to integrate the ChildWindow in the AppointmentSaving, but the problem is that ChildWindow is popup and it will continue with the operation, so that it will ignore at the end the e.Cancel setting.
When I use the 'System.Windows.Browser.HtmlPage.Window.Confirm(message)' it will freeze the application until the user press a button (in Firefox the main window is no more visible).
What to do?
Thanks
Björn.
Example: 'You have to inform the teacher about changing the appointment. Do you really want that? Yes/No'
If the user confirm that, it will change the appointment, otherwise will cancel it.
Where can I place the ChildWindow in the event process?
During D&D the following events are fired:
- CanDrop: if the return value is false, it will not drag&drop
- Drop
- AppointmentEditing
- AppointmentSaving: if set e.Cancel = true; it will not save the appointment
- AppointmentEdited
- DragDropCompleted
I tried to integrate the ChildWindow in the AppointmentSaving, but the problem is that ChildWindow is popup and it will continue with the operation, so that it will ignore at the end the e.Cancel setting.
When I use the 'System.Windows.Browser.HtmlPage.Window.Confirm(message)' it will freeze the application until the user press a button (in Firefox the main window is no more visible).
What to do?
Thanks
Björn.